Skip to content

Commit b4498ce

Browse files
committed
Upgraded babel to babel-preset-env
1 parent bb5707a commit b4498ce

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.babelrc

100644100755
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
2-
"presets": ["es2015", "stage-2"],
2+
"presets": [
3+
["env", { "modules": false }],
4+
"stage-2"
5+
],
36
"plugins": ["transform-runtime"],
47
"comments": false,
58
"env": {

package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"babel-eslint": "^7.1.1",
2828
"babel-loader": "^6.4.0",
2929
"babel-plugin-transform-runtime": "^6.23.0",
30-
"babel-preset-es2015": "^6.24.0",
30+
"babel-preset-env": "^1.2.1",
3131
"babel-preset-stage-2": "^6.22.0",
3232
"babel-register": "^6.24.0",
3333
"chalk": "^1.1.3",
@@ -70,5 +70,10 @@
7070
"engines": {
7171
"node": ">= 4.0.0",
7272
"npm": ">= 3.0.0"
73-
}
73+
},
74+
"browserslist": [
75+
"> 1%",
76+
"last 2 versions",
77+
"not ie <= 8"
78+
]
7479
}

0 commit comments

Comments
 (0)