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

Correctly handle subpackage imports marked as external #3407

Merged
merged 2 commits into from Jun 3, 2021
Merged

Conversation

matthewp
Copy link
Contributor

@matthewp matthewp commented Jun 3, 2021

Changes

When you have an external that is a subpackage import such as external: ['foo/bar/boo.js'] we were ignoring that and installing it. This is because it was previously only checking if the package was marked as external.

Testing

Added a test for this scenario.

Docs

N/A, bug fix.

@matthewp matthewp requested a review from a team as a code owner June 3, 2021 20:40
@vercel
Copy link

vercel bot commented Jun 3, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/pikapkg/snowpack/HQxZWDDMMRfo8oruGkFfPSc4zeEy
✅ Preview: https://snowpack-git-external-deep-pikapkg.vercel.app

Copy link
Contributor

@natemoo-re natemoo-re left a comment

Choose a reason for hiding this comment

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

Good catch and much cleaner!

@matthewp matthewp merged commit 64b377e into main Jun 3, 2021
@matthewp matthewp deleted the external-deep branch June 3, 2021 20:53
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