extension webpack: do not copy .ts files as resources

This commit is contained in:
Martin Aeschlimann 2021-01-05 22:37:23 +01:00
parent ed3989b069
commit cfc8c5d3d7

View file

@ -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) })