Skip to content

Commit

Permalink
fix: add electron as an external for webpack (microsoft#239134)
Browse files Browse the repository at this point in the history
* fix: add electron as an external for webpack

* refactor: move electron external to shared webpack
  • Loading branch information
devm33 authored Feb 3, 2025
1 parent 3de8db4 commit 63d1401
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ module.exports = withDefaults({
context: __dirname,
entry: {
extension: './src/extension.ts',
}
},
});
2 changes: 1 addition & 1 deletion extensions/shared.webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ function withNodeDefaults(/**@type WebpackConfig & { context: string }*/extConfi
}]
},
externals: {
'electron': 'commonjs electron', // ignored to avoid bundling from node_modules
'vscode': 'commonjs vscode', // ignored because it doesn't exist,
'applicationinsights-native-metrics': 'commonjs applicationinsights-native-metrics', // ignored because we don't ship native module
'@azure/functions-core': 'commonjs azure/functions-core', // optioinal dependency of appinsights that we don't use
Expand Down Expand Up @@ -204,4 +205,3 @@ module.exports.node = withNodeDefaults;
module.exports.browser = withBrowserDefaults;
module.exports.nodePlugins = nodePlugins;
module.exports.browserPlugins = browserPlugins;

0 comments on commit 63d1401

Please sign in to comment.