v0.25.6
📦 esbuild
✨ 6 features🐛 2 fixes🔧 5 symbols
Summary
This release introduces a configurable watch delay, improves tree-shaking for try statements and negated bigints, and fixes a memory leak in the build context API.
✨ New Features
- Added a configurable 'delay' option to the watch() API and --watch-delay CLI flag to defer rebuilding after file changes.
- Added experimental support for OpenHarmony via the @esbuild/openharmony-arm64 npm package (WebAssembly-based).
- Support for empty :is() and :where() syntax in CSS without generating warnings.
- Improved tree-shaking for 'try' statements located within dead code blocks.
- Improved tree-shaking for negated bigint constants (e.g., -1n), which are now considered side-effect free.
- Updated TypeScript type definitions for 'entryPoints' to allow mixed arrays of strings and objects.
🐛 Bug Fixes
- Fixed a memory leak occurring when cancel() was called immediately after rebuild() in a build context.
- Fixed overly restrictive TypeScript types for the entryPoints API option.
🔧 Affected Symbols
rebuildcancelwatchentryPoints@esbuild/openharmony-arm64