We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29e3c82 commit 849cab2Copy full SHA for 849cab2
src/index.ts
@@ -92,6 +92,7 @@ const globalShimsBanner = [
92
`import __global_polyfill from 'vite-plugin-node-polyfills/shims/global'`,
93
`import __process_polyfill from 'vite-plugin-node-polyfills/shims/process'`,
94
``,
95
+ `globalThis = globalThis ?? window`,
96
`globalThis.Buffer = globalThis.Buffer || __buffer_polyfill`,
97
`globalThis.global = globalThis.global || __global_polyfill`,
98
`globalThis.process = globalThis.process || __process_polyfill`,
0 commit comments