diff --git a/package.json b/package.json index 37656764fd0..d6d08c399d1 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/webpack.config.js b/webpack.config.js index ad40a58b485..f5c01c7b6d3 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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']}}]] } }, {