From 00c9abb8061e56de96658d8ba9ef541678636b13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Fri, 17 Feb 2017 17:31:09 +0100 Subject: [PATCH] Revert to basic presets for build --- package.json | 5 +++++ webpack.config.js | 10 +++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index d2bd7d3db1..ea932cc00e 100644 --- a/package.json +++ b/package.json @@ -86,6 +86,11 @@ "devDependencies": { "ava": "^0.18.1", "babel-eslint": "^7.1.1", + "babel-plugin-array-includes": "^2.0.3", + "babel-plugin-transform-async-to-generator": "^6.22.0", + "babel-plugin-transform-runtime": "^6.22.0", + "babel-preset-es2015": "^6.22.0", + "babel-preset-stage-2": "^6.22.0", "codecov": "^1.0.1", "copy-webpack-plugin": "^4.0.1", "eslint": "^3.15.0", diff --git a/webpack.config.js b/webpack.config.js index bc77a1e10f..53c731ff72 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -31,7 +31,15 @@ module.exports = { loader: 'babel-loader', exclude: /node_modules/, query: { - presets: ['vue-app'], + plugins: [ + 'transform-async-to-generator', + 'array-includes', + 'transform-runtime' + ], + presets: [ + ['es2015', { modules: false }], + 'stage-2' + ], cacheDirectory: true } }