Vite
A fast frontend build tool and development server that serves ECMAScript modules directly during development.
In more detail
Vite is a common consumer of design system packages, so libraries must resolve correctly through its exports handling. In production it bundles the application with Rollup-compatible tooling, so tree shaking and the sideEffects field still apply.
Related terms
- bundler — A build tool, such as webpack, Rollup or Vite, that follows imports and combines modules into files a browser can load efficiently.
- ECMAScript modules — The standard JavaScript module system, written with import and export statements, used by browsers and modern tools.
- Rollup — A JavaScript bundler focused on ECMAScript modules, widely used to build libraries.
- esbuild — A very fast JavaScript and TypeScript bundler and transpiler written in Go.
- single-file transpilation — Compiling each file on its own without looking at the rest of the project, which is fast but cannot use type information.
Taught in
- Component Packaging: Dual ESM/CJS Builds & Package Exports — Design Systems & Component Engineering
- ECMAScript Modules, CJS Interop And verbatimModuleSyntax — Production TypeScript