Skip to content

Commit 54243b2

Browse files
author
sayll
committed
update v2.0.0
1 parent a75ced6 commit 54243b2

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

config/webpack/modules/babel.js

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,31 @@
11
let 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

2531
if (!!process.env.NODE_TEST) { // 启用测试模式

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
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",

0 commit comments

Comments
 (0)