Skip to content

Commit 0bacfa3

Browse files
add .babelrc
1 parent 626c631 commit 0bacfa3

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.babelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": ["es2015", "stage-2"]
3+
}

package.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@
1313
"type": "git",
1414
"url": "https://github.com/ElemeFE/vue-msgbox.git"
1515
},
16-
"babel": {
17-
"presets": [
18-
"es2015"
19-
]
20-
},
2116
"keywords": [
2217
"message box",
2318
"alert",
@@ -32,6 +27,7 @@
3227
"babel-loader": "^6.2.0",
3328
"babel-plugin-transform-runtime": "^6.3.13",
3429
"babel-preset-es2015": "^6.3.13",
30+
"babel-preset-stage-2": "^6.5.0",
3531
"css-loader": "^0.23.1",
3632
"eslint": "^1.10.3",
3733
"eslint-loader": "^1.1.1",

0 commit comments

Comments
 (0)