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

Remove process.versions.node for node detection #62

Merged
merged 1 commit into from
Nov 20, 2021
Merged

Conversation

guybedford
Copy link
Member

Some libraries do a Node.js detection like if (process.versions.node). For this reason we shouldn't be polyfilling this version.

@Mesteery I think at some point it could be worth considering splitting the Node.js libs into two classes by having two condition combinations - "browser" or "browser" + "node", where "browser" + "node" effectively does something more like web containers in fully trying to virtualize Node.js in a browser as an environment condition. It would be interesting to see how far we could get with workflows around that. For process this would effectively split it into two - process-browser.js and process-browser-node.js.

@guybedford guybedford merged commit 65f1188 into main Nov 20, 2021
@guybedford guybedford deleted the process-node branch November 20, 2021 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant