Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Svelte plugin forhttps://vite.dev

License

NotificationsYou must be signed in to change notification settings

sveltejs/vite-plugin-svelte

Repository files navigation

npm versionCIChat

The officialSvelte plugin forVite.

Installation

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

Usage

// vite.config.jsimport{defineConfig}from'vite';import{svelte}from'@sveltejs/vite-plugin-svelte';exportdefaultdefineConfig({plugins:[svelte({/* plugin options */})]});

Documentation

Packages

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

Got a question? / Need help?

Join theSvelte Discord server!

Development

All scripts work from monorepo-root.The plugins are unbundled esm, a build step is not required while developing locally, but restarting local dev-servers can be needed to apply changes.

  • pnpm i to install dependencies

  • pnpm playwright install chromium to install required playwright browser binaries via local playwright-core

    NOTEThis repo usesplaywright-core with a bin alias toplaywright via package.json scriptCallingpnpm dlx playwright install chromium will not work.

  • pnpm check andpnpm:test to validate changes

  • pnpm format to format source code

  • pnpm test:unit,pnpm test:serve orpnpm test:build to run a subset of tests

  • pnpm test <e2e-directory-name> to focus a specific testsuite

  • pnpm changeset to generate a changeset

  • pnpm generate:types to generate public types from jsdoc (this is required when changing types and validated in ci)

Credits

License

MIT


[8]ページ先頭

©2009-2025 Movatter.jp