diff --git a/package.json b/package.json index 5977d9c..60c1153 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/webpack.config.js b/webpack.config.js index 014e051..eb20cc1 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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']}}]] } }] }