Update babel-preset-es2015 to babel-preset-env

Use the common scratch browserlist configuration used for styling and babel
transforming in other scratch repositories.
This commit is contained in:
Michael "Z" Goddard 2018-05-03 18:54:54 -04:00
parent 16c6868779
commit dcb6a3ac56
No known key found for this signature in database
GPG key ID: 762CD40DD5349872
2 changed files with 2 additions and 2 deletions

View file

@ -33,7 +33,7 @@
"babel-core": "^6.24.1",
"babel-eslint": "^7.1.1",
"babel-loader": "^7.0.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-env": "^1.6.1",
"canvas-toBlob": "1.0.0",
"copy-webpack-plugin": "4.2.1",
"decode-html": "2.0.0",

View file

@ -20,7 +20,7 @@ const base = {
loader: 'babel-loader',
include: path.resolve(__dirname, 'src'),
query: {
presets: ['es2015']
presets: [['env', {targets: {browsers: ['last 3 versions', 'Safari >= 8', 'iOS >= 8']}}]]
}
},
{