Skills
Skill 11 of 19
Vite build tool configuration, plugin API, SSR, and Vite 8 Rolldown migration.
1 minute · 128 words · 8 sections
Install
npx skills add antfu/skills --skill vitenpx skills add antfu/skillsThe first command installs just this skill, by the name in its SKILL.md; the second installs the whole repository.
Based on Vite 8 beta (Rolldown-powered). Vite 8 uses Rolldown bundler and Oxc transformer.
Vite is a next-generation frontend build tool with fast dev server (native ESM + HMR) and optimized production builds.
vite.config.ts| Topic | Description | Reference |
|---|---|---|
| Configuration | vite.config.ts, defineConfig, conditional configs, loadEnv | core-config (opens in a new tab) |
| Features | import.meta.glob, asset queries (?raw, ?url), import.meta.env, HMR API | core-features (opens in a new tab) |
| Plugin API | Vite-specific hooks, virtual modules, plugin ordering | core-plugin-api (opens in a new tab) |
| Topic | Description | Reference |
|---|---|---|
| Build & SSR | Library mode, SSR middleware mode, ssrLoadModule, JavaScript API | build-and-ssr (opens in a new tab) |
| Topic | Description | Reference |
|---|---|---|
| Environment API | Vite 6+ multi-environment support, custom runtimes | environment-api (opens in a new tab) |
| Rolldown Migration | Vite 8 changes: Rolldown bundler, Oxc transformer, config migration | rolldown-migration (opens in a new tab) |
vite # Start dev server
vite build # Production build
vite preview # Preview production build
vite build --ssr # SSR buildimport { defineConfig } from 'vite'
export default defineConfig({
plugins: [],
resolve: { alias: { '@': '/src' } },
server: { port: 3000, proxy: { '/api': 'http://localhost:8080' } },
build: { target: 'esnext', outDir: 'dist' },
})@vitejs/plugin-vue - Vue 3 SFC support@vitejs/plugin-vue-jsx - Vue 3 JSX@vitejs/plugin-react - React with Oxc/Babel@vitejs/plugin-react-swc - React with SWC@vitejs/plugin-legacy - Legacy browser supportVite build tool configuration, plugin API, SSR, and Vite 8 Rolldown migration. Use when working with Vite projects, vite.config.ts, Vite plugins, or building libraries/SSR apps with Vite.
The verbatim description from this skill’s front matter — the string an agent matches on to decide whether to load it.
main, last pushed 23 June 2026.SKILL.md, not by matching a directory convention. One layout observed: skills/*/SKILL.md.h1 and no skipped levels:/antfu/skills.md, and each skill at its own .md URL.7 files · 19 KB
Everything this skill ships beside its prose. All of it is set here, as subchapters of skill 11.
Documentation the agent loads on demand, rather than up front.
Everything else published alongside the skill.