-
-
Notifications
You must be signed in to change notification settings - Fork 34
feat!: add ResolveError::Builtin::is_runtime_module
#272
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 ResolveError::Builtin::is_runtime_module
#272
Conversation
CodSpeed Performance ReportMerging #272 will not alter performanceComparing Summary
|
Boshen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need tests in src/tests/builtins.rs
|
This is a breaking change, it changes the shape of a public error. |
Yeah, the breaking change may not be avoided. it is used for scenarios like bundler or others want to get the original builtin module specifier because always returns
|
I think there are plenty of tests that cover this, https://github.com/oxc-project/oxc-resolver/pull/272/files#diff-945bb3291582dde54a233e5b184b7917ced686114d546a5c47b8ba2eb96baf36R87-R98 |
201f70c to
249bf10
Compare
ResolveError::Builtin::prefixed_with_node_colon
ResolveError::Builtin::prefixed_with_node_colonResolveError::Builtin::is_runtime_module
ResolveError::Builtin::is_runtime_modulecan be used to determine whether the original specifier was prefixed withnode:or not.