Skip to content

Commit f8a0ebb

Browse files
authored
Merge pull request #1286 from DevChanQ/main
fix(connect): polyfill process global in browser script
2 parents 675dbf2 + 1f2bebb commit f8a0ebb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

connect/esbuild.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,15 @@ await esbuild.build({
6060
*/
6161
plugins: [
6262
nodeModulesPolyfillPlugin({
63+
globals: {
64+
process: true
65+
},
6366
modules: {
6467
crypto: true,
6568
constants: true,
6669
events: true,
67-
stream: true
70+
stream: true,
71+
process: true
6872
}
6973
})
7074
],

0 commit comments

Comments
 (0)