From 2aa92c6e83b8244754bbcd6c51b44af6fc512c57 Mon Sep 17 00:00:00 2001 From: Alexandru Dima Date: Thu, 17 Dec 2020 12:01:07 +0100 Subject: [PATCH] Adopt copy-webpack-plugin breaking change --- extensions/shared.webpack.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) }) ]