Closed aryzing closed 1 year ago
Just tried setting up a very vanilla Svelte app with pnpm create vite my-app --template svelte-ts and added the vite-plugin-node-polyfills to handle some libs using Node.js functionality. Seems like it's not working, Buffer is undefined.
pnpm create vite my-app --template svelte-ts
vite-plugin-node-polyfills
Buffer
I've created this repro to aid with debugging,
https://github.com/aryzing/repro-node-polyfill-not-working
Is the config incorrect or is it not working as expected?
Duplicate of #22 (fixed in v0.11.2). Thanks again for the reproduction!
v0.11.2
Just tried setting up a very vanilla Svelte app with
pnpm create vite my-app --template svelte-ts
and added thevite-plugin-node-polyfills
to handle some libs using Node.js functionality. Seems like it's not working,Buffer
is undefined.I've created this repro to aid with debugging,
https://github.com/aryzing/repro-node-polyfill-not-working
Is the config incorrect or is it not working as expected?