mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-28 12:33:35 +01:00
adopt web extensions to webpack 5
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
|
||||
const withBrowserDefaults = require('../shared.webpack.config').browser;
|
||||
|
||||
module.exports = withBrowserDefaults({
|
||||
const config = withBrowserDefaults({
|
||||
context: __dirname,
|
||||
entry: {
|
||||
extension: './src/npmBrowserMain.ts'
|
||||
@@ -17,8 +17,11 @@ module.exports = withBrowserDefaults({
|
||||
output: {
|
||||
filename: 'npmBrowserMain.js'
|
||||
},
|
||||
node: {
|
||||
'child_process': 'empty',
|
||||
'which': 'empty'
|
||||
resolve: {
|
||||
fallback: {
|
||||
'child_process': false
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
module.exports = config;
|
||||
|
||||
Reference in New Issue
Block a user