chore(babel): Use babel-preset-env instead of babel-preset-es2015.
This commit is contained in:
parent
fda52f7160
commit
bade2ae719
|
@ -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",
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue