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:
parent
2c0b3d7885
commit
28f7e6f02c
1 changed files with 11 additions and 2 deletions
|
@ -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)$/,
|
||||
|
|
Loading…
Reference in a new issue