elysiajs / eden

Fully type-safe Elysia client
MIT License
147 stars 37 forks source link

Having `onResponse` defined breaks on Bun due to broken `response.clone()` #109

Open hazelnutcloud opened 2 months ago

hazelnutcloud commented 2 months ago

When using treaty in sveltekit running on Bun, the call to response.clone() throws an error:

TypeError: Expected 'this' to be instanceof Response

Might be related: https://github.com/oven-sh/bun/pull/6468