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(npm): disable npm specifiers in import.meta.resolve() #16599

Merged
merged 2 commits into from
Nov 11, 2022

Conversation

bartlomieju
Copy link
Member

No description provided.

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. Thanks!

{
let specifier_str = specifier.to_rust_string_lossy(scope);

if specifier_str.starts_with("npm:") {
Copy link
Member

Choose a reason for hiding this comment

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

Alternatively we could make it allowed with --unstable, but maybe that's difficult?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's difficult, plus I'm not sure if resolving it works at all - I think it's better to disable them completely

@bartlomieju bartlomieju merged commit 06bd9e9 into denoland:main Nov 11, 2022
@bartlomieju bartlomieju deleted the disable_meta_resolve_for_npm branch November 11, 2022 17:20
bartlomieju added a commit to bartlomieju/deno that referenced this pull request Nov 12, 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.

None yet

2 participants