From ee5aafc8622f29f5947a9e627fcf248bdef7f4e2 Mon Sep 17 00:00:00 2001 From: "Michael \"Z\" Goddard" Date: Mon, 7 May 2018 12:42:54 -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 5977d9c..60c1153 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "babel-core": "^6.24.1", "babel-eslint": "^7.2.2", "babel-loader": "^7.1.4", - "babel-preset-es2015": "^6.24.1", + "babel-preset-env": "^1.6.1", "eslint": "^3.19.0", "eslint-config-scratch": "^3.1.0", "json": "^9.0.6", diff --git a/webpack.config.js b/webpack.config.js index 014e051..eb20cc1 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -18,7 +18,7 @@ module.exports = { include: path.resolve(__dirname, 'src'), loader: 'babel-loader', options: { - presets: ['es2015'] + presets: [['env', {targets: {browsers: ['last 3 versions', 'Safari >= 8', 'iOS >= 8']}}]] } }] }