diff --git a/webpack.config.js b/webpack.config.js index 37d7024..18528c9 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -10,7 +10,7 @@ const path = require('path'); /** @type WebpackConfig */ const extensionConfig = { target: 'node', // VS Code extensions run in a Node.js-context 📖 -> https://webpack.js.org/configuration/node/ - mode: 'none', // this leaves the source code as close as possible to the original (when packaging we set this to 'production') + mode: 'none', // this leaves the source code as close as possible to the original (when packaging we set this to 'production') entry: './src/extension.ts', // the entry point of this extension, 📖 -> https://webpack.js.org/configuration/entry-context/ output: { @@ -37,6 +37,12 @@ const extensionConfig = { loader: 'ts-loader' } ] + }, + { + test: /\.node$/, + use: [ + { loader: 'node-loader' } + ] } ] }, @@ -45,4 +51,4 @@ const extensionConfig = { level: "log", // enables logging required for problem matchers }, }; -module.exports = [ extensionConfig ]; \ No newline at end of file +module.exports = [extensionConfig]; \ No newline at end of file