summaryrefslogtreecommitdiffstats
path: root/webpack.common.js
diff options
context:
space:
mode:
Diffstat (limited to 'webpack.common.js')
-rw-r--r--webpack.common.js13
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)$/,