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: bring prebundleSvelteLibraries out of experimental #476

Merged
merged 4 commits into from Oct 22, 2022

Conversation

benmccann
Copy link
Member

@benmccann benmccann commented Oct 20, 2022

Hurray!

We can address #421 in a follow-up since it only makes prebundling less effective, but doesn't break any projects

@benmccann benmccann changed the title Enable prebundling bring prebundleSvelteLibraries out of experimental Oct 20, 2022
Copy link
Member

@bluwy bluwy left a comment

Choose a reason for hiding this comment

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

Added a commit to refactor a bit of stuff 😅 but this looks good! Waiting for dominik's approval too just in case.

@bluwy bluwy changed the title bring prebundleSvelteLibraries out of experimental feat: bring prebundleSvelteLibraries out of experimental Oct 20, 2022
@dominikg
Copy link
Member

If you feel comfortable promoting it out of experimental i'm ok with it too. One thing that can be a bit of a pain still is that if it discovers new svelte components while navigating an app during dev, prebundling runs again to include them unless you add all of them to optimizeDeps.include (which has to be done explicitly because there is no glob support in that (why not?)

@bluwy
Copy link
Member

bluwy commented Oct 21, 2022

I think it would only re-prebundle when it discovers a new deep import, but this PR/feature should bring it closer to a Vite issue so maybe we can get glob support for Vite 4 too 🤔 Ref: vitejs/vite#5419

@bluwy bluwy merged commit 48ed571 into sveltejs:main Oct 22, 2022
@github-actions github-actions bot mentioned this pull request Oct 22, 2022
@benmccann benmccann deleted the enable-prebundling branch November 3, 2022 15:27
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

3 participants