Adopt copy-webpack-plugin breaking change

This commit is contained in:
Alexandru Dima 2020-12-17 12:01:07 +01:00
parent 6de06bc8c8
commit 2aa92c6e83
No known key found for this signature in database
GPG key ID: 6E58D7B045760DA0

View file

@ -71,7 +71,7 @@ function withNodeDefaults(/**@type WebpackConfig*/extConfig) {
plugins: [
// @ts-expect-error
new CopyWebpackPlugin([
{ from: 'src', to: '.', ignore: ['**/test/**', '*.ts'] }
{ from: 'src', to: '.', globOptions: { ignore: ['**/test/**', '*.ts'] } }
]),
new NLSBundlePlugin(id)
],
@ -128,7 +128,7 @@ function withBrowserDefaults(/**@type WebpackConfig*/extConfig) {
plugins: [
// @ts-expect-error
new CopyWebpackPlugin([
{ from: 'src', to: '.', ignore: ['**/test/**', '*.ts'] }
{ from: 'src', to: '.', globOptions: { ignore: ['**/test/**', '*.ts'] } }
]),
new DefinePlugin({ WEBWORKER: JSON.stringify(true) })
]