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

add support for --include scanning bare module specifiers #138

Merged
merged 1 commit into from
Jan 11, 2020

Conversation

FredKSchott
Copy link
Owner

Based off of this discussion (may have been deleted): https://twitter.com/passle_/status/1216052543366758407

Currently, --include won't understand bare module specifiers. This was fine for Babel users who could just run it on their output lib/ directory. But, if you are using import maps, you're out of luck.

This PR adds support so that import map users can still use --include. New test added a lot of noise, but the meat of the change is in src/scan-imports.ts

/cc @thepassle

@thepassle
Copy link
Contributor

Before I even made the issue 😋

Copy link
Collaborator

@drwpow drwpow left a comment

Choose a reason for hiding this comment

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

LGTM! Nice test, too

@drwpow
Copy link
Collaborator

drwpow commented Jan 11, 2020

Also @FredKSchott I don’t think we ever discussed this (at least I wasn’t thinking about this scenario). This was just a gap that now has been filled! And it’s a great addition.

@FredKSchott FredKSchott merged commit 7c1cfe1 into master Jan 11, 2020
@FredKSchott FredKSchott deleted the match-bare-specifiers branch January 11, 2020 21:45
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

3 participants