Updating webpack to retain dirname value
This commit is contained in:
Родитель
fb65b6d602
Коммит
da48bf7396
|
@ -16,6 +16,10 @@ const config = {
|
|||
libraryTarget: 'commonjs2',
|
||||
devtoolModuleFilenameTemplate: '../[resource-path]'
|
||||
},
|
||||
node: {
|
||||
__dirname: false,
|
||||
__filename: false,
|
||||
},
|
||||
devtool: 'source-map',
|
||||
externals: {
|
||||
vscode: 'commonjs 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/
|
||||
|
|
Загрузка…
Ссылка в новой задаче