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

Support dynamic import scanning #3581

Merged
merged 2 commits into from Jul 13, 2021
Merged

Support dynamic import scanning #3581

merged 2 commits into from Jul 13, 2021

Conversation

matthewp
Copy link
Contributor

Changes

This fixes dynamic import scanning (for packages). If you do:

if(condition) {
const mod = await import('pkg/path.js');
}
We'll now correctly install such packages.

Testing

Test added

Docs

Bug fix only

This fixes dynamic import scanning of packages.
@changeset-bot
Copy link

changeset-bot bot commented Jul 13, 2021

🦋 Changeset detected

Latest commit: bc7f0d8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
snowpack Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Jul 13, 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/H7ik4uaEN19EFiRrfDGWUfYcmEku
✅ Preview: https://snowpack-git-dyn-import-scan2-pikapkg.vercel.app

@FredKSchott
Copy link
Owner

Nice! LGTM

@matthewp matthewp merged commit c4a5555 into main Jul 13, 2021
@matthewp matthewp deleted the dyn-import-scan2 branch July 13, 2021 14:33
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