cloudflare preset breaks unenv/fetch
and node:http
polyfills
#364
Labels
bug
Something isn't working
unenv/fetch
and node:http
polyfills
#364
Environment
unenv v2 nightly with nodeless + cloudflare presets
Reproduction
https://github.com/unjs/unenv/blob/main/test/workerd/tests.mjs#L134
example usage
Describe the bug
A change in #363 causes
node:http
polyfill to use runtime nativenode:stream
which is incompatible withunenv/fetch
polyfills (which essentially breaks H3 v1 and Nitro v2 as soon as they use it anyhow, via upgrade or wrangler transpiling fornode_compat_v2
)Additional context
This bug introduced as a hotfix for opennextjs/opennextjs-cloudflare#147 (usage in opennextjs)
This is solvable via #365 to support
node:stream
fornode:http
polyfill natively.Logs
No response
The text was updated successfully, but these errors were encountered: