Skip to content

Commit 2539c18

Browse files
committed
Upgrade to babel-preset-env
1 parent 7c8d711 commit 2539c18

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.babelrc

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
{
2-
"presets": ["react", "es2015", "stage-2"]
2+
"presets": [
3+
"react",
4+
["env", {
5+
"targets": {
6+
"browsers": ["last 2 versions"]
7+
}
8+
}],
9+
"stage-2"
10+
]
311
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
"babel-core": "^6.13.2",
3131
"babel-eslint": "^8.0.0",
3232
"babel-loader": "^7.0.0",
33-
"babel-preset-es2015": "^6.13.2",
3433
"babel-preset-react": "^6.11.1",
3534
"babel-preset-stage-2": "^6.5.0",
3635
"browser-sync": "^2.18.6",
@@ -59,6 +58,7 @@
5958
"webpack-stream": "^4.0.0"
6059
},
6160
"dependencies": {
61+
"babel-preset-env": "^1.6.0",
6262
"classnames": "^2.2.5",
6363
"lodash": "^4.17.4",
6464
"prop-types": "^15.5.8",

0 commit comments

Comments
 (0)