The official Svelte plugin for Vite.
npm install --save-dev @sveltejs/vite-plugin-svelte// vite.config.js import { defineConfig } from 'vite'; import { svelte } from '@sveltejs/vite-plugin-svelte'; export default defineConfig({ plugins: [ svelte({ /* plugin options */ }) ] });| Package | Changelog |
|---|---|
| @sveltejs/vite-plugin-svelte | Changelog |
| @sveltejs/vite-plugin-svelte-inspector | Changelog |
Join the Svelte Discord server!
- Run
pnpm ito install dependencies - Run
pnpm devinpackages/vite-plugin-svelteto autobuild plugin - Run
pnpm devinpackages/playground/xxxto start a Vite app
Note that changes in the plugin needs restart of the Vite dev server.
- 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