Load process polyfill automatically, required by util (#7156)

Fixes #7150
This commit is contained in:
Jean Pierre 2021-10-15 10:01:11 -05:00 committed by GitHub
parent cf6673f2c1
commit 3d37bb4898
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 0 deletions

8
.vscode/launch.json vendored
View File

@ -38,6 +38,14 @@
"outFiles": ["${workspaceRoot}/{out, node_modules}/**/*.js"],
"preLaunchTask": "gulp: prepare-test",
"internalConsoleOptions": "openOnSessionStart"
},
{
"name": "Run Web Extension",
"type": "pwa-extensionHost",
"debugWebWorkerHost": true,
"request": "launch",
"args": ["--extensionDevelopmentPath=${workspaceRoot}", "--extensionDevelopmentKind=web"],
"outFiles": ["${workspaceRoot}/{out, node_modules}/**/*.js"]
}
]
}

View File

@ -116,6 +116,9 @@ const nodelessConfig = {
new webpack.IgnorePlugin({
resourceRegExp: /child_process$/,
}),
new webpack.ProvidePlugin({
process: 'process/browser', // util requires this internally
}),
new ForkTsCheckerWebpackPlugin(),
],
};