Home

Awesome

@sveltejs/vite-plugin-svelte

npm version CI Chat

The official Svelte plugin for Vite.

Installation

npm install --save-dev @sveltejs/vite-plugin-svelte

Usage

// vite.config.js
import { defineConfig } from 'vite';
import { svelte } from '@sveltejs/vite-plugin-svelte';

export default defineConfig({
  plugins: [
    svelte({
      /* plugin options */
    })
  ]
});

Documentation

Packages

PackageChangelog
@sveltejs/vite-plugin-svelteChangelog
@sveltejs/vite-plugin-svelte-inspectorChangelog

Got a question? / Need help?

Join the Svelte Discord server!

Development

Note that changes in the plugin needs restart of the Vite dev server.

Credits

License

MIT