Merge pull request #426 from mzgoddard/babel-preset-env

Replace babel-preset-es2015 with babel-preset-env
This commit is contained in:
Ray Schamp 2018-05-08 16:52:08 -04:00 committed by GitHub
commit a75262463b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -35,7 +35,7 @@
"babel-loader": "^7.1.4", "babel-loader": "^7.1.4",
"babel-plugin-react-intl": "2.4.0", "babel-plugin-react-intl": "2.4.0",
"babel-plugin-transform-object-rest-spread": "^6.22.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", "babel-preset-react": "^6.22.0",
"canvas-prebuilt": "^1.6.5-prerelease.1", "canvas-prebuilt": "^1.6.5-prerelease.1",
"classnames": "2.2.5", "classnames": "2.2.5",

View file

@ -20,7 +20,7 @@ const base = {
include: path.resolve(__dirname, 'src'), include: path.resolve(__dirname, 'src'),
options: { options: {
plugins: ['transform-object-rest-spread'], plugins: ['transform-object-rest-spread'],
presets: ['es2015', 'react'] presets: [['env', {browsers: ['last 3 versions', 'Safari >= 8', 'iOS >= 8']}], 'react']
} }
}, },
{ {