This repository was archived by the owner on Aug 19, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +288
-78
lines changed Expand file tree Collapse file tree 4 files changed +288
-78
lines changed Original file line number Diff line number Diff line change 17
17
"plugins" : [
18
18
" transform-decorators-legacy"
19
19
]
20
- }
20
+ },
21
21
}
22
22
}
Original file line number Diff line number Diff line change 1
1
const path = require ( 'path' ) ;
2
2
3
- // Note: If we switch to ESM version of babelified files, we'll likely need to
4
- // update from the ancient isparta-loader. Likely we'll switch to:
5
- // https://github.com/istanbuljs/babel-plugin-istanbul with a `test` BABEL_ENV
6
- //
7
- // https://github.com/FormidableLabs/radium/issues/969
8
3
process . env . BABEL_ENV = 'commonjs' ;
9
4
10
5
module . exports = function ( config ) {
@@ -34,17 +29,15 @@ module.exports = function(config) {
34
29
include : path . resolve ( 'src/__tests__/' ) ,
35
30
loader : 'babel-loader'
36
31
} ,
37
- {
38
- test : / \. j s $ / ,
39
- include : path . resolve ( 'src/' ) ,
40
- enforce : 'pre' ,
41
- exclude : / ( _ _ t e s t s _ _ | _ _ m o c k s _ _ ) / ,
42
- loader : 'isparta-loader?babel-loader'
43
- } ,
44
32
{
45
33
test : / \. j s $ / ,
46
34
exclude : [ / n o d e _ m o d u l e s / ] ,
47
- loader : 'babel-loader'
35
+ use : {
36
+ loader : 'babel-loader' ,
37
+ options : {
38
+ plugins : [ 'istanbul' ]
39
+ }
40
+ }
48
41
} ,
49
42
{
50
43
test : / \. c s s $ / ,
Original file line number Diff line number Diff line change 74
74
},
75
75
"devDependencies" : {
76
76
"babel-eslint" : " ^7.1.1" ,
77
+ "babel-plugin-istanbul" : " ^5.1.0" ,
77
78
"caniuse-api" : " ^2.0.0" ,
78
79
"chai" : " ^3.5.0" ,
79
80
"color" : " ^1.0.3" ,
89
90
"express-http-proxy" : " ^0.11.0" ,
90
91
"flow-bin" : " ^0.53.1" ,
91
92
"inject-loader" : " ^3.0.1" ,
92
- "isparta-loader" : " ^2.0.0" ,
93
93
"jsdom" : " ^12.0.0" ,
94
94
"jsdom-global" : " ^3.0.2" ,
95
95
"karma" : " ^3.0.0" ,
You can’t perform that action at this time.
0 commit comments