-
Notifications
You must be signed in to change notification settings - Fork 554
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable cloudflare Node.js compatibility layer #1171
Comments
We need to add a cloudflare preset to |
Related unjs/unenv#126 We shall find a way to inject compatible classes from platform |
Relevant :
|
Hopefully this shoud resolve cloudflare/workers-sdk#2081 |
I can see we don't have a tracking repo on our side though, ideally try to pinpoint if its a Nuxt/Nitro/Nuxt-security issue and open an issue there 🙏🏽 |
great improvement! |
Probably there are more important todos atm, but I just found this issue and wanted to say that this enhancement would be AMAZING :) |
Cloudflare supports a subset of Node.js compatible imports.
Unenv, has a good coverage for most of the Node.js polyfills and shims. But by replacing the supported subset we can:
node:internal
native features are impossible to add into userland such as async_hooksThere are two concerns:
wrangler.toml
has enabled compatibility flag and otherwise fail or warn the build to ask users doing this based on usage.The text was updated successfully, but these errors were encountered: