mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 20:26:08 +00:00
ignore optional dependencies when webpacking
This commit is contained in:
@@ -57,7 +57,9 @@ function withNodeDefaults(/**@type WebpackConfig*/extConfig) {
|
||||
}]
|
||||
},
|
||||
externals: {
|
||||
'vscode': 'commonjs vscode', // ignored because it doesn't exist
|
||||
'vscode': 'commonjs vscode', // ignored because it doesn't exist,
|
||||
'applicationinsights-native-metrics': 'commonjs applicationinsights-native-metrics', // ignored because we don't ship native module
|
||||
'@opentelemetry/tracing': 'commonjs @opentelemetry/tracing' // ignored because we don't ship this module
|
||||
},
|
||||
output: {
|
||||
// all output goes into `dist`.
|
||||
@@ -112,7 +114,9 @@ function withBrowserDefaults(/**@type WebpackConfig*/extConfig) {
|
||||
}]
|
||||
},
|
||||
externals: {
|
||||
'vscode': 'commonjs vscode', // ignored because it doesn't exist
|
||||
'vscode': 'commonjs vscode', // ignored because it doesn't exist,
|
||||
'applicationinsights-native-metrics': 'commonjs applicationinsights-native-metrics', // ignored because we don't ship native module
|
||||
'@opentelemetry/tracing': 'commonjs @opentelemetry/tracing' // ignored because we don't ship this module
|
||||
},
|
||||
performance: {
|
||||
hints: false
|
||||
|
||||
Reference in New Issue
Block a user