diff --git a/extensions/shared.webpack.config.js b/extensions/shared.webpack.config.js index ab6a40c6b80..d3d89ea635a 100644 --- a/extensions/shared.webpack.config.js +++ b/extensions/shared.webpack.config.js @@ -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) }) ]