Revert "extension webpack: do not copy .ts files as resources"

This reverts commit ab1aeb6b73.
This commit is contained in:
Martin Aeschlimann 2021-01-05 21:10:37 +01:00
parent 3aa41899aa
commit 485c5fc009

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'] } }
]
}),
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'] } }
]
}),
new DefinePlugin({ WEBWORKER: JSON.stringify(true) })