In SvelteKit, the event.request.body is a web-interoperable stream. However, when this package is imported in a SvelteKit project running in Bun, it tries to load the NodeJS stuff.
I recommend moving the NodeJS-related legacy stuff into a file-type/node package, as the majority is moving towards modern standards with runtimes like Bun and Deno which support WinterCG stuff, and SSR frameworks like SvelteKit also support it.
In SvelteKit, the
event.request.body
is a web-interoperable stream. However, when this package is imported in a SvelteKit project running in Bun, it tries to load the NodeJS stuff.I recommend moving the NodeJS-related legacy stuff into a
file-type/node
package, as the majority is moving towards modern standards with runtimes like Bun and Deno which support WinterCG stuff, and SSR frameworks like SvelteKit also support it.