From b949593335a9ae0f19626d49b46e1bf0266e8b45 Mon Sep 17 00:00:00 2001 From: Winston Liu Date: Fri, 19 Nov 2021 17:35:53 -0500 Subject: [PATCH] Label optional dependencies as external --- webpack.config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index fecdf5f21..9b47abdc3 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -18,7 +18,9 @@ const config = { }, devtool: 'source-map', externals: { - vscode: "commonjs vscode" // the vscode-module is created on-the-fly and must be excluded. Add other modules that cannot be webpack'ed, 📖 -> https://webpack.js.org/configuration/externals/ + vscode: "commonjs vscode", // the vscode-module is created on-the-fly and must be excluded. Add other modules that cannot be webpack'ed, 📖 -> https://webpack.js.org/configuration/externals/ + 'applicationinsights-native-metrics': 'commonjs applicationinsights-native-metrics', // we're not native + '@opentelemetry/tracing': 'commonjs @opentelemetry/tracing', // optional }, resolve: { // support reading TypeScript and JavaScript files, 📖 -> https://github.com/TypeStrong/ts-loader extensions: ['.ts', '.js']