Parcel v2.10.0 includes big performance improvements, an improved --lazy
mode, reduced runtime bundle sizes, web extension improvements, and tons of bug fixes and improvements.
Added
-
Core
- Add support for include and exclude globs for
--lazy
mode – Details, Details - Merge all native Rust modules into one package – Details
- Add async resolver and JS transformer functions using rayon – Details
- Support "register" tools in module loader (e.g.
@babel/register
,esbuild-register
,ts-node
) – Details - Limit default number of JS workers to 4 to improve memory usage/performance – Details
- Add support for include and exclude globs for
-
Bundler
-
Resolver
-
JavaScript
-
CSS
- Add include and exclude globs for CSS modules – Details
-
WASM
- Add WASM packager with source map support – Details
-
XML
- Transform xml-stylesheet processing instructions – Details
-
Web Extensions
-
Web Manifest
- Add support for icons in file_handlers – Details
Fixed
-
Core
- Query glibc version only once to speed up JSTransformer on Linux – Details
- Refresh cache before writing contents to bundle – Details
- Fix
--lazy
mode bugs – Details - Ignore no-opt command line option – Details
- Bump lmdb – Details
- Don't hide error when diagnostic is malformed – Details
- Don't autoinstall local files in package manager – Details
- Fix bug with cache and glob entries – Details
-
JavaScript
- Migrate to swc_core – Details
- Move ESM loader runtime to absolute URLs – Details
- Fix duplicate asset references – Details
- Bump swc – Details, Details, Details
- Fix shorthand identifier import usage – Details
- Ensure nested member expressions are marked used in dev mode – Details
- Set ascii_only for swc emit – Details
- Add tests for non-identifier symbol names – Details
-
Bundler
-
Images
- Bump oxipng from 6.0.0 -> 8.0.0 – Details
-
Sass
- Fix sass import edge case – Details
-
Dev Server
- Fix index page loading in dev server when bundle type isn't html – Details