-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Chore/update vite plugin svelte #2343
Conversation
🦋 Changeset detectedLatest commit: f220efc The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
Should we remove the old auto-exclude code here too? (even though it should still work without). And we could also consider removing this faq section. |
yes, i think we should, good catch @bluwy . No point in sveltekit and vite-plugin-svelte doing the same thing. |
Agreed on removing the duplicate functionality from SvelteKit I'd maybe just remove one sentence of the FAQ:
That should be done automatically now. The rest still seems relevant |
docs change in vite-plugin-svelte sveltejs/vite-plugin-svelte#158 |
@benmccann I think the first and second paragraph of that section can be removed though, as it should never happen anymore. The second paragraph also has a broken link. Removing those would also made the third paragraph redundant. Perhaps we could replace with the ESM-only dep issue, or some other issues listed at #2086? as they would now be more common. |
The link in the second paragraph of the FAQ appears to be broken, so yeah we can remove the second paragraph. Perhaps we should add something at the very top of the SvelteKit FAQ that points at https://svelte.dev/faq and https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/faq.md For the first perhaps we can rewrite it to something like:
|
1b91679
to
8059185
Compare
Oh crap. I thought I was being helpful and making some docs changes to this PR, but accidentally pushed them to |
…dependency optimization
…mizeDeps.exclude and ssr.noExternal as this is done by vite-plugin-svelte since 1.0.0-next.20
dcfb23b
to
9f9cf67
Compare
maybe wait a little, @bluwy found an edge case where having packages without a valid export like So there will be next.21 soonish |
next.21 is released |
Before submitting the PR, please make sure you do the following
Tests
pnpm test
and lint the project withpnpm lint
andpnpm check
Changesets
pnpx changeset
and following the prompts. All changesets should bepatch
until SvelteKit 1.0with kit already updated to vite-2.5.3 , users can update to vite-plugin-svelte@1.0.0-next.20 on their own but this should increase adoption-rate and visibility for a feature that should solve a lot of pain people were having with transitive cjs dependencies.
Not sure if patch or minor 🤷♂️