Skip to content

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