Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@sveltejs/vite-plugin-svelte

sveltejs2.7mMIT5.1.0TypeScript support: included

The official Svelte plugin for Vite.

vite-plugin, vite plugin, vite, svelte

readme

@sveltejs/vite-plugin-svelte

The official Svelte plugin for Vite.

Usage

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

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

Documentation

License

MIT