From 6ca07130bd1ee1f272ab5ab62dea26ed221f43f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Tue, 16 Apr 2019 10:17:19 +0200 Subject: Edge compatibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- webpack.common.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'webpack.common.js') diff --git a/webpack.common.js b/webpack.common.js index 7c4d6a5b..da9cc0e9 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -32,8 +32,17 @@ module.exports = { }, { test: /\.js$/, - loader: 'babel-loader', - exclude: /node_modules/ + use: { + loader: 'babel-loader', + options: { + plugins: [ + '@babel/plugin-syntax-dynamic-import', + '@babel/plugin-proposal-object-rest-spread' + ], + presets: ['@babel/preset-env'] + } + }, + exclude: /node_modules\/(?!(p-limit|p-defer|p-queue|p-try|cdav-library))/ }, { test: /\.(png|jpg|gif|svg)$/, -- cgit v1.2.3