File tree Expand file tree Collapse file tree 4 files changed +108
-70
lines changed Expand file tree Collapse file tree 4 files changed +108
-70
lines changed Original file line number Diff line number Diff line change 66 ],
77 "plugins" : [
88 " transform-flow-comments" ,
9- ]
9+ ],
10+ "env" : {
11+ "test" : {
12+ "plugins" : [
13+ // Makes power-assert work
14+ " espower"
15+ ]
16+ }
17+ }
1018}
Original file line number Diff line number Diff line change @@ -24,14 +24,18 @@ module.exports = function(config) {
2424 module : {
2525 loaders : [
2626 {
27- test : / \. (?: j s | e s ) . ? $ / ,
28- loader : 'babel-loader ' ,
27+ test : / \. (?: j s x ? | e s 6 ) $ / ,
28+ loader : 'babel' ,
2929 query : {
3030 cacheDirectory : true ,
3131 } ,
32- exclude : / ( n o d e _ m o d u l e s ) /
32+ exclude : / n o d e _ m o d u l e s /
33+ } ,
34+ {
35+ test : / \. j s o n $ / ,
36+ loader : 'json'
3337 }
34- ]
38+ ] ,
3539 } ,
3640 plugins : [
3741 new webpack . DefinePlugin ( {
Original file line number Diff line number Diff line change 3131 "babel-core" : " ^6.5.1" ,
3232 "babel-eslint" : " ^6.0.2" ,
3333 "babel-loader" : " ^6.2.2" ,
34+ "babel-plugin-espower" : " ^2.1.2" ,
3435 "babel-plugin-transform-flow-comments" : " ^6.7.0" ,
3536 "babel-preset-es2015" : " ^6.5.0" ,
3637 "babel-preset-react" : " ^6.5.0" ,
3738 "babel-preset-stage-1" : " ^6.5.0" ,
3839 "eslint" : " ^2.7.0" ,
3940 "eslint-plugin-react" : " ^4.3.0" ,
41+ "jasmine-core" : " ^2.4.1" ,
42+ "json-loader" : " ^0.5.4" ,
4043 "karma" : " ^0.13.14" ,
4144 "karma-chrome-launcher" : " ^0.2.1" ,
4245 "karma-cli" : " 0.1.2" ,
4851 "lodash" : " ^4.11.1" ,
4952 "open" : " 0.0.5" ,
5053 "phantomjs-prebuilt" : " >=1.9" ,
54+ "power-assert" : " ^1.4.1" ,
5155 "pre-commit" : " ^1.1.2" ,
5256 "react" : " ^15.0.0" ,
5357 "react-dom" : " ^15.0.0" ,
6468 "dependencies" : {
6569 "classnames" : " ^2.2.0"
6670 }
67- }
71+ }
You can’t perform that action at this time.
0 commit comments