File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 11let babel = {
2+
23 cacheDirectory : true ,
4+
35 'presets' : [
46 [
57 "es2015" ,
68 {
79 "modules" : false
810 }
911 ] ,
10- 'latest' ,
11- 'stage-0' ,
12- //'react',
12+ 'stage-2' ,
13+ // Stage 2 is "draft", 4 is finished, 0 is strawMan.
1314 ] ,
14- 'plugins' : [ 'transform-runtime' ] ,
15+
16+ 'plugins' : [ 'transform-runtime' , ] ,
17+
1518 'env' : {
1619 'development' : {
17- //'presets': ['react-hmre'],
20+ 'presets' : [ ] ,
21+ 'plugins' : [ ] ,
1822 } ,
1923 'production' : {
2024 'presets' : [ ] ,
25+ 'plugins' : [ ] ,
2126 }
2227 }
28+
2329} ;
2430
2531if ( ! ! process . env . NODE_TEST ) { // 启用测试模式
Original file line number Diff line number Diff line change 7575 "babel-plugin-istanbul" : " ^3.1.2" ,
7676 "babel-plugin-transform-runtime" : " ^6.23.0" ,
7777 "babel-polyfill" : " ^6.23.0" ,
78- "babel-preset-latest " : " ^6.22.0" ,
78+ "babel-preset-es2015 " : " ^6.22.0" ,
7979 "babel-preset-stage-0" : " ^6.22.0" ,
8080 "better-npm-run" : " 0.0.13" ,
8181 "css-loader" : " ^0.26.2" ,
You can’t perform that action at this time.
0 commit comments