Replace babel-preset-es2015 with babel-preset-env

This commit is contained in:
Michael "Z" Goddard 2018-05-07 14:22:22 -04:00
parent dcae9a249f
commit 906051077f
No known key found for this signature in database
GPG key ID: 762CD40DD5349872
2 changed files with 2 additions and 2 deletions

View file

@ -35,7 +35,7 @@
"babel-loader": "^7.1.0",
"babel-plugin-react-intl": "2.4.0",
"babel-plugin-transform-object-rest-spread": "^6.22.0",
"babel-preset-es2015": "^6.22.0",
"babel-preset-env": "^1.6.1",
"babel-preset-react": "^6.22.0",
"canvas-prebuilt": "^1.6.5-prerelease.1",
"classnames": "2.2.5",

View file

@ -19,7 +19,7 @@ const base = {
include: path.resolve(__dirname, 'src'),
options: {
plugins: ['transform-object-rest-spread'],
presets: ['es2015', 'react']
presets: [['env', {browsers: ['last 3 versions', 'Safari >= 8', 'iOS >= 8']}], 'react']
}
},
{