Skip to content
项目

sveltejs/vite-plugin-svelte

在 GitHub 查看

关于

适用于 Svelte 的 https://vite.dev 插件

网站与应用开发

这些数字如何统计

实测星标增长

24小时
0
7天
+3
15天
+3
1个月
+1

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

@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

Got a question? / Need help?

Join the Svelte 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

    NOTE This repo uses playwright-core with a bin alias to playwright via package.json script Calling pnpm dlx playwright install chromium will not work.

  • pnpm check and pnpm:test to validate changes

  • pnpm format to format source code

  • pnpm test:unit, pnpm test:serve or pnpm 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

探索相关项目

加载中…