mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 12:19:20 +00:00
Adopt more breaking changes from copy-webpack-plugin
This commit is contained in:
@@ -70,9 +70,11 @@ function withNodeDefaults(/**@type WebpackConfig*/extConfig) {
|
||||
devtool: 'source-map',
|
||||
plugins: [
|
||||
// @ts-expect-error
|
||||
new CopyWebpackPlugin([
|
||||
{ from: 'src', to: '.', globOptions: { ignore: ['**/test/**', '*.ts'] } }
|
||||
]),
|
||||
new CopyWebpackPlugin({
|
||||
patterns: [
|
||||
{ from: 'src', to: '.', globOptions: { ignore: ['**/test/**', '*.ts'] } }
|
||||
]
|
||||
}),
|
||||
new NLSBundlePlugin(id)
|
||||
],
|
||||
};
|
||||
@@ -127,9 +129,11 @@ function withBrowserDefaults(/**@type WebpackConfig*/extConfig) {
|
||||
devtool: 'source-map',
|
||||
plugins: [
|
||||
// @ts-expect-error
|
||||
new CopyWebpackPlugin([
|
||||
{ from: 'src', to: '.', globOptions: { ignore: ['**/test/**', '*.ts'] } }
|
||||
]),
|
||||
new CopyWebpackPlugin({
|
||||
patterns: [
|
||||
{ from: 'src', to: '.', globOptions: { ignore: ['**/test/**', '*.ts'] } }
|
||||
]
|
||||
}),
|
||||
new DefinePlugin({ WEBWORKER: JSON.stringify(true) })
|
||||
]
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user