From cfc8c5d3d77c896f7fc376fe97118519d1ee8997 Mon Sep 17 00:00:00 2001 From: Martin Aeschlimann Date: Tue, 5 Jan 2021 22:37:23 +0100 Subject: [PATCH] extension webpack: do not copy .ts files as resources --- 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 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) })