Parcel bundles web apps from HTML entry points without mandatory config. It includes a dev server, hot reloading, and production optimizations written largely in Rust.
Overview
Parcel is a batteries-included build tool for web projects. Starting from an HTML file, it resolves JavaScript, TypeScript, JSX, CSS, Sass, images, fonts, and other assets, installing missing plugins automatically when it encounters new file types.
Development mode ships with a built-in server, optional HTTPS certificate generation, API proxying, hot module updates, and diagnostics that highlight errors in the terminal and browser with linked documentation. Integrations with React Fast Refresh and Vue hot reload aim to preserve component state during edits. Lazy builds can defer compiling files until a browser requests them while still prefetching dependencies to avoid request waterfalls.
Production builds apply tree shaking for ES modules and CommonJS, minification for JavaScript, CSS, HTML, and SVG, image resizing and format conversion via URL parameters, content hashing for long-term caching, automatic code splitting, and optional Gzip or Brotli compression. Transpilation respects browserslist targets, including modern CSS features and vendor prefixes.
Performance work uses Rust-based compilers built on SWC for JavaScript and a Firefox-grade CSS parser, multi-core worker threading, and granular disk caching that invalidates when sources, config, or plugins change. Native plugins can extend the pipeline through the C ABI. The third major line positions itself as a scalable successor to earlier Parcel releases with similar zero-config defaults.
Key features
- HTML-first zero-config entry
- Built-in dev server and HTTPS
- Hot reload with state preservation
- Rust and SWC compilation pipeline
- Automatic plugin installation
- Production tree shaking and minify
- Image optimization via query params
- Parallel builds and granular cache
Use cases
- Single-page web application builds
- Library packaging for npm
- Fast local frontend iteration
- Multi-target browser transpilation
- Production asset optimization