Skip to content
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

RFC: node_compat next steps #1987

Closed
penalosa opened this issue Oct 5, 2022 Discussed in #1975 · 1 comment
Closed

RFC: node_compat next steps #1987

penalosa opened this issue Oct 5, 2022 Discussed in #1975 · 1 comment
Labels
discussion This issue is being used to discuss a topic rather than track a feature or bug.

Comments

@penalosa
Copy link
Contributor

penalosa commented Oct 5, 2022

Discussed in #1975

Originally posted by threepointone June 24, 2022
We've landed preliminary support for node.js compatibility in 2.0, powered by @esbuild-plugins/node-modules-polyfill/@esbuild-plugins/node-globals-polyfill. We can also auto detect usage of node built-ins, and suggest to the user to add node_compat = true to their wrangler.toml. This was a good start. Follow up items.

cc @jasnell who I bet would be interested.

@penalosa penalosa added the discussion This issue is being used to discuss a topic rather than track a feature or bug. label Oct 5, 2022
@penalosa penalosa closed this as completed Oct 5, 2022
@chrisspiegl
Copy link

chrisspiegl commented Dec 18, 2022

Is there any news on this?
I just ran into an issue where I tried using node_compat mode and it threw the error that XMLHTTPRequest was missing?
Found this issue but it's closed?

I am setup with wrangler 2.6.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion This issue is being used to discuss a topic rather than track a feature or bug.
Projects
None yet
Development

No branches or pull requests

2 participants