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: support core modules with node: prefix #27

Conversation

gmahomarf
Copy link

As of versions 14.18.0 and 16.0.0, core modules can also be identified
by prepending node: to the module name. This change patches the
RegExp used to determine whether a module is a code module by allowing
an optional node: prefix.

As of versions 14.18.0 and 16.0.0, core modules can also be identified
by prepending `node:` to the module name. This change patches the
RegExp used to determine whether a module is a code module by allowing
an optional `node:` prefix.
@gmahomarf
Copy link
Author

@iambumblehead I'm not sure if this is ok, or if it would be better to remove the node: prefix from the resolved path. Thoughts?

@iambumblehead
Copy link
Owner

@gmahomarf this looks like an excellent change with an excellent unit-test. thank you! let's publish right away

@iambumblehead iambumblehead merged commit bb56586 into iambumblehead:master Aug 15, 2022
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.

2 participants