Improve compatibility with weird browsers

e.g. Edge and Pale Moon

Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
This commit is contained in:
Raimund Schlüßler 2019-05-11 14:57:18 +02:00
parent 2c0b3d7885
commit 28f7e6f02c
No known key found for this signature in database
GPG key ID: 036FA7EB1A599178

View file

@ -31,8 +31,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)$/,