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

Account for modules without importNames #1097

Merged
merged 1 commit into from
Nov 28, 2018
Merged

Conversation

matthewp
Copy link
Member

importNames is used for tree-shaking, but non-ES modules will not have
this metadata. Previously we assumed anything with importSpecifiers
also had importNames, but this isn't the case; stache files have the
specifiers metadata which is used for error reporting.

This fixes a regression in steal-tools 2.0.8.

importNames is used for tree-shaking, but non-ES modules will not have
this metadata. Previously we assumed anything with `importSpecifiers`
also had `importNames`, but this isn't the case; stache files have the
specifiers metadata which is used for error reporting.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.005%) to 93.764% when pulling 9442dc3 on guard-importspecifiers into 492651f on master.

@matthewp matthewp merged commit 14634e5 into master Nov 28, 2018
@matthewp matthewp deleted the guard-importspecifiers branch November 28, 2018 15:10
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