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

feat: update install targets's specifier from package.json #3368

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

shuyanzi
Copy link

Changes

when snowpack scans an ESM package, we check if there is 'xx.min.js' file from package.json, if there is, change the specifier of item of installTargets.
(but if 'xx.min.js' imports an ESM package, it does nothing...., so it's just a little bit optimized)
image

Testing

image

Docs

@shuyanzi shuyanzi requested a review from a team as a code owner May 26, 2021 03:14
@vercel
Copy link

vercel bot commented May 26, 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/9TAjxENkLw6eZm9ognN3T7JXcWYD
✅ Preview: https://snowpack-git-fork-shuyanzi-feature-update-install-0a4cd3.vercel.app

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.

1 participant