talira

Next Generation Frontend Tooling

open sourceMITfree

Vite is a frontend build tool and development server for web apps. In development it serves source files on demand over native ES modules, so the server starts instantly regardless of app size, pre-bundles dependencies and applies changes with hot module replacement as you save; production builds are bundled by Rolldown with tree-shaking, minification and chunking control. TypeScript, JSX, CSS, Web Workers and WebAssembly work out of the box, and its plugin system extends Rollup's plugin interface, with a typed JavaScript API and first-class server-side rendering support. It's the foundation many frameworks build on, and OpenAI, Shopify, Stripe and Linear use it. It's MIT licensed and maintained by VoidZero and its contributors.

Problems it solves

  • our webpack dev server takes a minute to start on a big app
  • hot reload is so slow I lose my train of thought after every save
  • set up a new React or Vue project with TypeScript without configuring a bundler
  • production bundle builds take too long in CI
  • I want Rollup-compatible plugins but a dev server that doesn't bundle everything first
  • build a framework or library on top of a fast dev server and bundler with server-side rendering
  • import CSS, workers and WebAssembly in frontend code without extra loaders

Features

  • instant dev server start over native ES modules
  • dependency pre-bundling
  • hot module replacement
  • TypeScript, JSX, CSS, Web Workers and WebAssembly support
  • production builds with Rolldown: tree-shaking, minification and chunking control
  • plugin system extending Rollup's plugin interface
  • typed JavaScript API
  • first-class server-side rendering support
  • create-vite project scaffolding

Capabilities

Has an APIplan not known
Has a command line toolplan not known
Takes pluginsplan not known

Alternatives

The same job

These do what Vite does.

  1. webpack A bundler for javascript and friends
  2. esbuild An extremely fast bundler for the web

Compare Vite with the top 3