Key features of Parcel 2
v2Parcel 2 is a ground-up rewrite designed for scalability and extensibility. Key features include:
- Plugin System: A fully extensible architecture for all aspects of the build process.
- Tree Shaking: Enabled by default for ES modules, CommonJS, dynamic imports, and CSS modules.
- Performance: Includes a Rust-based JavaScript compiler and parallelized architecture.
- Differential Bundling: Automatic bundling via native ES modules with fallback for older browsers.
- Code Splitting: Automatic splitting and deduplication of common modules.
- Image Optimization: Automatic resizing, conversion (AVIF, WebP), and lossless optimization (JPEG, PNG).
- Caching: Improved, portable cache that tracks configs, plugins, and dev dependencies automatically.
- Hot Reloading: Improved support, including React Fast Refresh.
- Library Support: Ability to output to ES modules, CommonJS, and bundle TypeScript definitions.
- Lazy Development Mode: Builds only files requested by the browser to improve startup times.