diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-04-16 10:17:19 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-04-16 10:17:19 +0200 |
commit | 6ca07130bd1ee1f272ab5ab62dea26ed221f43f1 (patch) | |
tree | 003b63bfb7f9b4e599bfd5fb0484f2a098fb5501 /webpack.common.js | |
parent | e32528687539e30edec3bcee5993f84866d9398f (diff) |
Edge compatibility
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'webpack.common.js')
-rw-r--r-- | webpack.common.js | 13 |
1 files changed, 11 insertions, 2 deletions
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)$/, |