diff --git a/webpack.config.js b/webpack.config.js index 87041ea..ec2d7f9 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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 @@ -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 }