diff --git a/.babelrc b/.babelrc index a8cb44b4..e7be253f 100644 --- a/.babelrc +++ b/.babelrc @@ -2,6 +2,5 @@ "plugins": [ "transform-object-rest-spread" ], - "presets": ["es2015"] + "presets": [["env", {"targets": {"browsers": ["last 3 versions", "Safari >= 8", "iOS >= 8"]}}]] } - diff --git a/package.json b/package.json index aad23f21..d0a4ca19 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "babel-eslint": "^7.2.3", "babel-loader": "^7.1.4", "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-config-scratch": "^4.0.0", "eslint-plugin-import": "^2.7.0",