mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-01 22:12:26 +01:00
webpack - move __dirname-config up into shared config
This commit is contained in:
@@ -19,6 +19,9 @@ module.exports = function withDefaults(/**@type WebpackConfig*/extConfig) {
|
||||
let defaultConfig = {
|
||||
mode: 'none', // this leaves the source code as close as possible to the original (when packaging we set this to 'production')
|
||||
target: 'node', // extensions run in a node context
|
||||
node: {
|
||||
__dirname: false // leave the __dirname-behaviour intact
|
||||
},
|
||||
resolve: {
|
||||
mainFields: ['main'], // prefer the main-entry of package.json files
|
||||
extensions: ['.ts', '.js'] // support ts-files and js-files
|
||||
|
||||
Reference in New Issue
Block a user