mirror of
https://github.com/Microsoft/vscode
synced 2024-07-17 02:57:19 +00:00
ignore optional dependencies when webpacking
This commit is contained in:
parent
7a8b665f25
commit
9fa49ba941
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue