svite ![svite-logo](https://raw.githubusercontent.com/andrewriveradev/svite/main/resources/svite-logo.svg)
A fresh start for svite based on vite2 repo structure and setup
Packages
Package | Version (click for changelogs) |
---|---|
svite |
vite-plugin-svelte
vite-plugin-svelte has moved: https://github.com/sveltejs/vite-plugin-svelte
Please update your dependency to @sveltejs/vite-plugin-svelte
Development
dev
- run
pnpm i
to install - run
pnpm dev
inpackages/playground/xxx
to start vite
some notes
- For typescript, svelte components must use
<script lang="ts">
, not<script lang="typescript">
otherwise vite dep scan fails. see https://discord.com/channels/804011606160703521/804062134051930222/806300072349270033 - exclusions in optimizeDeps also cover children (x or startswith x+/)
- svelte components should be sorted with style nodes last as js code may contain markup node positions
Got a question? / Need help?
Join svite discord
Credits
- svelte and vite creators, maintainers and contributors
- rixo - without svelte-hmr and your support this would not have been possible
- intrnl - initial inspiration from https://github.com/intrnl/vite-plugin-svelte