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

This commit is contained in:
Michael "Z" Goddard 2018-05-07 12:42:54 -04:00 committed by Ray Schamp
parent a9182ab10e
commit ee5aafc862
2 changed files with 2 additions and 2 deletions

View file

@ -25,7 +25,7 @@
"babel-core": "^6.24.1",
"babel-eslint": "^7.2.2",
"babel-loader": "^7.1.4",
"babel-preset-es2015": "^6.24.1",
"babel-preset-env": "^1.6.1",
"eslint": "^3.19.0",
"eslint-config-scratch": "^3.1.0",
"json": "^9.0.6",

View file

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