Skip to content

Commit 9fa49ba

Browse files
committed
ignore optional dependencies when webpacking
1 parent 7a8b665 commit 9fa49ba

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

extensions/shared.webpack.config.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ function withNodeDefaults(/**@type WebpackConfig*/extConfig) {
5757
}]
5858
},
5959
externals: {
60-
'vscode': 'commonjs vscode', // ignored because it doesn't exist
60+
'vscode': 'commonjs vscode', // ignored because it doesn't exist,
61+
'applicationinsights-native-metrics': 'commonjs applicationinsights-native-metrics', // ignored because we don't ship native module
62+
'@opentelemetry/tracing': 'commonjs @opentelemetry/tracing' // ignored because we don't ship this module
6163
},
6264
output: {
6365
// all output goes into `dist`.
@@ -112,7 +114,9 @@ function withBrowserDefaults(/**@type WebpackConfig*/extConfig) {
112114
}]
113115
},
114116
externals: {
115-
'vscode': 'commonjs vscode', // ignored because it doesn't exist
117+
'vscode': 'commonjs vscode', // ignored because it doesn't exist,
118+
'applicationinsights-native-metrics': 'commonjs applicationinsights-native-metrics', // ignored because we don't ship native module
119+
'@opentelemetry/tracing': 'commonjs @opentelemetry/tracing' // ignored because we don't ship this module
116120
},
117121
performance: {
118122
hints: false

0 commit comments

Comments
 (0)