Skip to content

Commit

Permalink
changing vscode import
Browse files Browse the repository at this point in the history
  • Loading branch information
lucsomers101 committed Jan 30, 2024
1 parent a2a0d40 commit 6edaac5
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,6 +18,9 @@ const config = {
devtoolModuleFilenameTemplate: '../[resource-path]',
},
devtool: 'source-map',
externals: {
vscode: '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/
},
resolve: {
// support reading TypeScript and JavaScript files, 📖 -> https://github.com/TypeStrong/ts-loader
mainFields: ['browser', 'module', 'main'], // look for `browser` entry point in imported node modules
Expand Down Expand Up @@ -52,7 +55,6 @@ const config = {
vm: require.resolve('vm-browserify'),
zlib: require.resolve('browserify-zlib'),
modules:['node_modules'],
vscode:['vscode'],
fs: false,
child_process: false
}
Expand Down

0 comments on commit 6edaac5

Please sign in to comment.