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

Support bundling node native modules #10066

Merged
merged 2 commits into from
Jan 2, 2025
Merged

Support bundling node native modules #10066

merged 2 commits into from
Jan 2, 2025

Conversation

devongovett
Copy link
Member

Closes #8183

Separate transformer from the raw transformer because node shouldn't produce a URL. The runtime injects a loader that works in both CJS and ESM by using module.createRequire. Also updated the replacer for __dirname to support ESM using fileURLToPath.

@devongovett devongovett merged commit 4f3bcaa into v2 Jan 2, 2025
17 checks passed
@devongovett devongovett deleted the node-native branch January 2, 2025 16:37
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