From ec9f8bf3e348ef883e69256ce35fdee99a314a3f Mon Sep 17 00:00:00 2001 From: "Michael \"Z\" Goddard" Date: Mon, 7 May 2018 14:34:51 -0400 Subject: [PATCH] Replace babel-preset-es2015 with babel-preset-env --- .babelrc | 3 +-- package.json | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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 a4f4f4e6..a4bb1e05 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "babel-eslint": "^7.2.3", "babel-loader": "^7.1.2", "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",