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 advanced mount configuration #1349

Merged
merged 3 commits into from
Oct 18, 2020
Merged

add advanced mount configuration #1349

merged 3 commits into from
Oct 18, 2020

Conversation

FredKSchott
Copy link
Owner

Mentioned a few times in discord, requested by @rauschma in #875 (zero build/resolve mode) & mentioned as useful by the Svelte team.

Changes

  • Adds ability to turn on/off file building & import resolution on a per-mount basis.
  • This is advanced usage and not needed for most, since only non-web languages (jsx, ts, tsx, etc) build by default and Snowpack rarely needs to resolve JS imports that would already run directly in the browser.
  • But, if you know what you're doing, this config can give more explicit guarantees and speed up your build a bit.

Testing

  • "mount" test added.

Docs

  • Better "mount" config docs added.

@vercel
Copy link

vercel bot commented Oct 17, 2020

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/pnsnwvu81
✅ Preview: https://snowpack-git-mount-static.pikapkg.vercel.app

@FredKSchott FredKSchott changed the base branch from master to improve-dev October 18, 2020 05:38
Base automatically changed from improve-dev to master October 18, 2020 21:12
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