chore(babel): Use babel-preset-env instead of babel-preset-es2015.

This commit is contained in:
hristoterezov 2017-10-27 11:58:38 -05:00 committed by Lyubo Marinov
parent fda52f7160
commit bade2ae719
2 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@
"babel-eslint": "8.0.1",
"babel-loader": "7.1.2",
"babel-polyfill": "6.26.0",
"babel-preset-es2015": "6.24.1",
"babel-preset-env": "1.6.1",
"babel-preset-react": "6.24.1",
"babel-preset-stage-1": "6.24.1",
"clean-css": "3.4.25",

View File

@ -73,7 +73,7 @@ const config = {
// of the prefix babel-preset- in the preset names.
presets: [
[
require.resolve('babel-preset-es2015'),
require.resolve('babel-preset-env'),
// Tell babel to avoid compiling imports into CommonJS
// so that webpack may do tree shaking.