-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Convert build to Vite plugin and expose as @sveltejs/kit/experimental/vite
#5094
Conversation
🦋 Changeset detectedLatest commit: 4638cb2 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 |
@nickbreaton @JessicaSachs FYI. I hope this might help you. I'd love some feedback if you're able to try it out at some point |
!!! NICE. I'm looking forward to trying this out post-conferences... So.... mid-June? Unless @BlueWinds wants to give it a go first. |
Can you share a svelte.config.file? @benmccann. My code is broken #5283
|
Ref #4329
I didn't document it yet as it's still experimental. I'd also like to get feedback about using it with Vitest, Storybook, etc.
You should be able to use it with a
vite.config.js
that looks like:For example, you can run the
kit.svelte.dev
site with the followingvite.config.js
after removing thevite
config fromsvelte.config.js
:Some of this code may be able to be cleaned up when we drop support for
vite
config insvelte.config.js
. We may also be able to cleanup somevite-plugin-svelte
code if this proposal moves forward: vitejs/vite#8509Update: this now supports
preview
as well (#5170) asdev
andbuild