Skip to content

v3.0.0

Compare
Choose a tag to compare
@pi0 pi0 released this 13 Dec 12:04
· 3 commits to main since this release

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

compare changes

⚠️ Breaking Changes

  • Upgrade to rollup v4 (#327)
  • Default rollup build target to esnext (#335)
  • Upgrade to mkdist v2.0.0

🚀 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 to with (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 with tinyglobby (#426)

📖 Documentation

  • Update jsdocs for inferEntries (#310)
  • Add more jsdocs (#363)
  • Add examples (#334)
  • Fix typo (#414)
  • Add more usage info (#401)

❤️ Contributors