From d5691f75e7e9d86c709f18bd8e131ca5598585b0 Mon Sep 17 00:00:00 2001 From: Mihal Malostanidis Date: Thu, 21 Sep 2017 03:32:40 +0300 Subject: [PATCH] Remove preset-es2015 dependency (#1698) * Switch rollup to babel env preset Using the engine version from package.json * Remove babel-preset-es2015 dependency That darn thing was even in prod dependencies! --- build/rollup.config.js | 7 ++++++- package.json | 2 -- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/build/rollup.config.js b/build/rollup.config.js index 61a30e53b3..346d3fab8a 100755 --- a/build/rollup.config.js +++ b/build/rollup.config.js @@ -81,7 +81,12 @@ function genConfig (opts) { 'external-helpers' ], presets: [ - ['es2015', { modules: false }] + ['env', { + targets: { + node: '6.11.0' + }, + modules: false + }] ], 'env': { 'test': { diff --git a/package.json b/package.json index 445a1c74da..60e6ee9495 100644 --- a/package.json +++ b/package.json @@ -69,7 +69,6 @@ "autoprefixer": "^7.1.3", "babel-core": "^6.26.0", "babel-loader": "^7.1.2", - "babel-preset-es2015": "^6.24.1", "babel-preset-vue-app": "^1.3.0", "chalk": "^2.1.0", "chokidar": "^1.7.0", @@ -129,7 +128,6 @@ "babel-plugin-array-includes": "^2.0.3", "babel-plugin-external-helpers": "^6.22.0", "babel-plugin-istanbul": "^4.1.4", - "babel-preset-es2015": "^6.24.1", "codecov": "^2.3.0", "copy-webpack-plugin": "^4.0.1", "cross-env": "^5.0.5",