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.
2 parents 5240c17 + 2d9c8fe commit 92a3c91Copy full SHA for 92a3c91
src/index.ts
@@ -64,9 +64,10 @@ export const nodePolyfills = (options: Partial<PolyfillOptions> = {}): Plugin =>
64
plugins: [
65
{
66
...inject({
67
- Buffer: 'Buffer',
68
- global: 'global',
69
- process: 'process',
+ // cf. https://github.com/niksy/node-stdlib-browser/blob/3e7cd7f3d115ac5c4593b550e7d8c4a82a0d4ac4/README.md#vite
+ global: [globalShims, 'global'],
+ process: [globalShims, 'process'],
70
+ Buffer: [globalShims, 'Buffer']
71
}),
72
},
73
],
0 commit comments