Vite

8.0.8 · active · verified Sat Apr 18

Vite is a next-generation frontend build tool, currently at stable version 8.0.8, designed to significantly improve the frontend development experience. It functions as a dev server serving source files over native ES modules with fast Hot Module Replacement (HMR), and a build command that bundles code with Rollup for optimized production assets. Vite provides rich built-in features, a universal plugin interface, and fully typed APIs, making it highly extensible. Patch releases are frequent, with major versions released periodically.

Common errors

Warnings

Install

Imports

Quickstart

This command creates a new Vite project using the `create-vite` scaffold, setting up a React project with TypeScript. It then navigates into the project directory, installs dependencies, and starts the development server.

npm create vite@latest my-vite-app -- --template react-ts
cd my-vite-app
npm install
npm run dev

view raw JSON →