Add latest babel plugin for dynamic imports

This commit is contained in:
JC Brand 2019-09-02 17:25:20 +02:00
parent 778fb4e65d
commit df7e3841a2
3 changed files with 6 additions and 10 deletions

6
package-lock.json generated
View File

@ -2874,12 +2874,6 @@
"object.assign": "^4.1.0"
}
},
"babel-plugin-syntax-dynamic-import": {
"version": "6.18.0",
"resolved": "https://registry.npmjs.org/babel-plugin-syntax-dynamic-import/-/babel-plugin-syntax-dynamic-import-6.18.0.tgz",
"integrity": "sha1-jWomIpyDdFqZgqRBBRVyyqF5sdo=",
"dev": true
},
"backbone": {
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/backbone/-/backbone-1.4.0.tgz",

View File

@ -50,13 +50,13 @@
"devDependencies": {
"@babel/cli": "^7.5.0",
"@babel/core": "^7.5.4",
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
"@babel/preset-env": "^7.5.4",
"@converse/headless": "file:src/headless",
"@fortawesome/fontawesome-free": "5.9.0",
"autoprefixer": "^9.6.1",
"babel-eslint": "^10.0.2",
"babel-loader": "^8.0.6",
"babel-plugin-syntax-dynamic-import": "^6.18.0",
"backbone.nativeview": "conversejs/Backbone.NativeView#5997c8197ca594e6b8469447f28310c78bd1d95e",
"backbone.overview": "1.0.3",
"backbone.vdomview": "^1.0.1",

View File

@ -49,7 +49,6 @@ const config = {
}
}
]
}, {
}, {
test: /webfonts\/.*\.(woff(2)?|ttf|eot|truetype|svg)(\?v=\d+\.\d+\.\d+)?$/,
use: [
@ -70,7 +69,9 @@ const config = {
options: {
sourceMap: true
}
}, {
},
'postcss-loader',
{
loader: 'sass-loader',
options: {
includePaths: [
@ -92,7 +93,8 @@ const config = {
"browsers": [">1%", "not ie 11", "not op_mini all"]
}
}]
]
],
plugins: ['@babel/plugin-syntax-dynamic-import']
}
}
}, {