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

🐛 dynamically import node process #935

Merged
merged 1 commit into from
Dec 18, 2024
Merged

🐛 dynamically import node process #935

merged 1 commit into from
Dec 18, 2024

Conversation

cowboyd
Copy link
Member

@cowboyd cowboyd commented Dec 18, 2024

Motivation

fix #934

There were bundlers that were failing to process main.ts because it was statically importing from node:process which is not available in all environments.

Approach

This limits all the node specific code to the node branch of the host implementation. This node code will run only in the very specific instance that the main operation is running in node.

@cowboyd cowboyd requested review from taras and neurosnap December 18, 2024 14:57
@cowboyd cowboyd merged commit 8fee562 into v3 Dec 18, 2024
5 checks passed
@cowboyd cowboyd deleted the cl/dynamic-node-process branch December 18, 2024 16:03
@taras taras mentioned this pull request Dec 20, 2024
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.

Import Node APIs dynamically
3 participants