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

fix: check bare node specifier for ImportMapError::UnmappedBareSpecifier #298

Merged
merged 1 commit into from
Oct 2, 2023

Conversation

kt3k
Copy link
Member

@kt3k kt3k commented Oct 2, 2023

This PR adds bare node specifier check when the ResolveError from resolver.resolve is Other(ImportMapError::UnmappedBareSpecifier(_, _)).

By this change, we can keep more detailed error message from ImportMapError, for example, like Relative import path "unmapped" not prefixed with / or ./ or ../ and not in import map from "file://[WILDCARD]/092_import_map_unmapped_bare_specifier.ts"

related denoland/deno#20728

Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@kt3k kt3k merged commit 26e6567 into denoland:main Oct 2, 2023
4 checks passed
@kt3k kt3k deleted the fix-handle-import-map-unmapped-error branch October 2, 2023 13:54
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