vite

Next-generation frontend build tool with native ESM dev server, HMR, and Rolldown-powered production builds. Fast dev server using native ES modules and hot module replacement; production builds optimized with Rolldown bundler and Oxc transformer Configuration via vite.config.ts with support for conditional configs, environment variables, and plugin API for extending build behavior Built-in features include import.meta.glob for dynamic imports, asset queries ( ?raw , ?url ), and HMR API for custom refresh logic Library mode and SSR support with ssrLoadModule and JavaScript API for programmatic builds Vite 8 introduces multi-environment API for custom runtimes and migration path from traditional bundlers

INSTALLATION
npx skills add https://github.com/antfu/skills --skill vite
Run in your project or agent environment. Adjust flags if your CLI version differs.

SKILL.md

$2a

Build & SSR

Topic

Description

Reference

Build & SSR

Library mode, SSR middleware mode, ssrLoadModule, JavaScript API

build-and-ssr

Advanced

Topic

Description

Reference

Environment API

Vite 6+ multi-environment support, custom runtimes

environment-api

Rolldown Migration

Vite 8 changes: Rolldown bundler, Oxc transformer, config migration

rolldown-migration

Quick Reference

CLI Commands

vite              # Start dev server

vite build        # Production build

vite preview      # Preview production build

vite build --ssr  # SSR build

Common Config

import { defineConfig } from 'vite'

export default defineConfig({

  plugins: [],

  resolve: { alias: { '@': '/src' } },

  server: { port: 3000, proxy: { '/api': 'http://localhost:8080' } },

  build: { target: 'esnext', outDir: 'dist' },

})

Official Plugins

  • @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 support
BrowserAct

Let your agent run on any real-world website

Bypass CAPTCHA & anti-bot for free. Start local, scale to cloud.

Explore BrowserAct Skills →

Stop writing automation&scrapers

Install the CLI. Run your first Skill in 30 seconds. Scale when you're ready.

Start free
free · no credit card