From 906051077f89163775709900b9641751ebf45022 Mon Sep 17 00:00:00 2001 From: "Michael \"Z\" Goddard" Date: Mon, 7 May 2018 14:22:22 -0400 Subject: [PATCH] Replace babel-preset-es2015 with babel-preset-env --- package.json | 2 +- webpack.config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 0e9985ae..8bc80398 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "babel-loader": "^7.1.0", "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 87abe32b..52ab33c1 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -19,7 +19,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'] } }, {