Replace babel-preset-es2015 with babel-preset-env

This commit is contained in:
Michael "Z" Goddard 2018-05-07 14:34:51 -04:00
parent effbee66f7
commit ec9f8bf3e3
No known key found for this signature in database
GPG key ID: 762CD40DD5349872
2 changed files with 2 additions and 3 deletions

View file

@ -2,6 +2,5 @@
"plugins": [ "plugins": [
"transform-object-rest-spread" "transform-object-rest-spread"
], ],
"presets": ["es2015"] "presets": [["env", {"targets": {"browsers": ["last 3 versions", "Safari >= 8", "iOS >= 8"]}}]]
} }

View file

@ -35,7 +35,7 @@
"babel-eslint": "^7.2.3", "babel-eslint": "^7.2.3",
"babel-loader": "^7.1.2", "babel-loader": "^7.1.2",
"babel-plugin-transform-object-rest-spread": "^6.26.0", "babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-preset-es2015": "^6.24.1", "babel-preset-env": "^1.6.1",
"eslint": "^4.6.1", "eslint": "^4.6.1",
"eslint-config-scratch": "^4.0.0", "eslint-config-scratch": "^4.0.0",
"eslint-plugin-import": "^2.7.0", "eslint-plugin-import": "^2.7.0",