diff --git a/package.json b/package.json index 3de94654..bb140afc 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "babel-loader": "^7.1.4", "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", diff --git a/webpack.config.js b/webpack.config.js index 15fa259a..0068ccac 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -20,7 +20,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'] } }, {