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

feat: add support for "node:" prefixed modules #89

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dmnsgn
Copy link

@dmnsgn dmnsgn commented Oct 2, 2024

This PR add support for the node: protocol.

It has the same goal as this other PR #85 but different implementation: here I just extend the list of modules by adding items to the libs Map while the other PR updates the importee in the plugins' resolveId. If there are a lot of modules to resolve, it might be slightly faster to get them from the libs Map and not go through if+startsWith+replace. Open to discussion which is best.

Closes #84

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.

Not polyfilling node:path
1 participant