v3.0.0
What is coming next?
In parallel with maintaining stable releases of unbuild, We are experimenting with a new, faster, and more modern approach based on OXC, rolldown, and native runtime ESM/TypeScript made possible with recent Node.js versions!
Changelog
⚠️ Breaking Changes
🚀 Enhancements
- Upgrade to rollup v4 (#327)
- Support disabling
preserveDynamicImports
(#322) - rollup: Default to
esnext
build target (#335) - Support
copy
builder (#389) - Experimental active watcher for rollup (#364)
- rollup: Add
.mts
and.cts
to supported extensions (633ffe9) - Support custom jiti plugins for stub mode (#368)
- Upgrade to jiti v2 (#409)
- Add
--config
to the CLI (#440)
🩹 Fixes
- Don't clean root directory if set as
outDir
(#343) - Generate stub types of with explicit extension import if pkg type is module (#371)
- Correct dts generation for stub mode (#314)
- rollup: Handle aliases when checking for externals (#384)
- rollup: Update
importAttributesKey
towith
(27bcba8) - Type
RollupOptions.plugins
as array (62fa930) - Add all loader extensions to esbuild include (8ab22ff)
- Enable jiti
interopDefault
for config loader and internals (ref: #409) (#409) - rollup: Keep empty (type-only) modules (a9158e2)
- rollup: Keep empty type-only modules (7a6469b)
- untyped: Use custom jiti instance (00ded57)
- Normalize resolved path (2640083)
- stub: Enable
interopDefault
by default (8e6f7e4) - config: Only take default export (fefafec)
- Update to jiti 2.3 (9147c3e)
- Untyped declaration output is optional (5820182)
- untyped: Use schema module default export if is the only export (cc26726)
💅 Refactors
- Use
jiti.import
for esm stubs and improve templates (#300) - Overhaul builders structure (#410)
- Add explicit return types (#412)
- Use colors from
consola/utils
(6a8f36d) - Replace
globby
w/fast-glob
(#418) - Replace
fast
-glob withtinyglobby
(#426)
📖 Documentation
- Update jsdocs for
inferEntries
(#310) - Add more jsdocs (#363)
- Add examples (#334)
- Fix typo (#414)
- Add more usage info (#401)
❤️ Contributors
- Pooya Parsa (@pi0)
- 阿菜 Cai [email protected]
- Joaquín Sánchez (@userquin)
- Superchupu (@SuperchupuDev)
- @beer
- Sukka [email protected]
- S3xysteak (@s3xysteak)
- Weng [email protected]
- ZHAO Jin-Xiang [email protected]
- Joe McKenney (@joemckenney)
- Estéban (@Barbapapazes)
- Yasuhiro SHIMIZU [email protected]
- Marco Solazzi [email protected]
- Shoma-mano (@shoma-mano)
- Daniel Roe (@danielroe)
- Anthony Fu [email protected]
- Brendon Matos [email protected]
- 翠 / Green [email protected]