Skip to content

sveltejs/vite-plugin-svelte

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

* chore(deps): update all non-major dependencies

* fix: stick with pnpm 8.5 to keep lockfile format 6.0, which we still need for node 14 tests

* chore: bump pnpm again after 7.33 fixed the lockfile format issue, pin playwright to 1.33 to avoid breaking bin change

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: dominikg <dominik.goepel@gmx.de>
3892f4f

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

@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

Package Changelog
@sveltejs/vite-plugin-svelte Changelog
@sveltejs/vite-plugin-svelte-inspector Changelog

Got a question? / Need help?

Join the Svelte Discord server!

Development

  • Run pnpm i to install dependencies
  • Run pnpm dev in packages/vite-plugin-svelte to autobuild plugin
  • Run pnpm dev in packages/playground/xxx to start a Vite app

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

Credits

License

MIT