diff --git a/extensions/shared.webpack.config.js b/extensions/shared.webpack.config.js index b2d9e3b8c97..dbec21840ab 100644 --- a/extensions/shared.webpack.config.js +++ b/extensions/shared.webpack.config.js @@ -72,7 +72,7 @@ function withNodeDefaults(/**@type WebpackConfig*/extConfig) { // @ts-expect-error new CopyWebpackPlugin({ patterns: [ - { from: 'src', to: '.', globOptions: { ignore: ['**/test/**', '*.ts'] } } + { from: 'src', to: '.', globOptions: { ignore: ['**/test/**', '**/*.ts'] }, noErrorOnMissing: true } ] }), new NLSBundlePlugin(id) @@ -131,7 +131,7 @@ function withBrowserDefaults(/**@type WebpackConfig*/extConfig) { // @ts-expect-error new CopyWebpackPlugin({ patterns: [ - { from: 'src', to: '.', globOptions: { ignore: ['**/test/**', '*.ts'] } } + { from: 'src', to: '.', globOptions: { ignore: ['**/test/**', '**/*.ts'] }, noErrorOnMissing: true } ] }), new DefinePlugin({ WEBWORKER: JSON.stringify(true) })