Skip to content

Commit

Permalink
Merge pull request #4905 from 50Wliu/silence-webpack-errors
Browse files Browse the repository at this point in the history
Label optional dependencies as external
  • Loading branch information
JoeRobich authored Nov 20, 2021
2 parents 6753194 + b949593 commit acb9e86
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down

0 comments on commit acb9e86

Please sign in to comment.