github rolldown/tsdown v0.23.0

4 hours ago

   🧭 Migration Guide

Most users can upgrade directly. Before upgrading, run one final build with tsdown@0.22.14 and resolve all deprecation warnings.

  • config:
    • bundle: falseunbundle: true; bundle: true can be removed
    • outExtensionoutExtensions
    • publicDir / --public-dircopy / --copy
    • removeNodeProtocol: truenodeProtocol: 'strip'
    • injectStylecss.inject
  • deps:
    • inlineOnly / deps.onlyAllowBundledeps.onlyBundle
    • skipNodeModulesBundle: truedeps.neverBundle: true
    • resolveDepSubpath now defaults to false; set it to true to preserve the previous behavior
  • dts:
    • Select a generator with dts.generator, for example { generator: 'oxc' }
    • dts.cjsReexport was removed; dual-format builds now generate CJS declarations in a separate pass
  • attw:
    • The default profile changed from strict to esm-only; set profile: 'strict' to preserve the previous checks
  • programmatic API:
    • build() now returns { bundles, watch }; replace const bundles = await build() with const { bundles } = await build()
  • requirements:
    • Node.js 25 is no longer supported; use ^22.18.0, ^24.11.0, or >=26.0.0
    • The packages no longer publish legacy types and typesVersions fallbacks; use TypeScript’s bundler, node16, or nodenext module resolution

   🚨 Breaking Changes

  • Drop support for Node.js 25  -  by @sxzz (26950)
  • Remove deprecated tsup compatibility options  -  by @sxzz (50766)
  • Drop types and typesVersionsfields  -  by @sxzz (be3ea)
  • attw:
  • deps:
    • Remove deprecated deps.onlyAllowBundle  -  by @sxzz (30c55)
    • Disable resolveDepSubpath by default  -  by @sxzz (d300f)
    • Remove deprecated skipNodeModulesBundle  -  by @sxzz (f2a3d)
  • dts:
    • Remove dts.cjsReexport option  -  by @sxzz (9c70f)
    • Make dts.generator the only way to select generator  -  by @sxzz (eb75f)

   🚀 Features

   🐞 Bug Fixes

   🏎 Performance

    View changes on GitHub

Don't miss a new tsdown release

NewReleases is sending notifications on new releases.