tsdown bundles TypeScript libraries using Rolldown and Oxc. It ships with defaults for library builds, declaration output, and plugin ecosystems.
Overview
tsdown targets authors who publish TypeScript libraries and want a focused bundling workflow. It is built on Rolldown and uses Oxc for fast builds and declaration file generation.
Preconfigured defaults let you start from a minimal setup rather than wiring every build option yourself. Install and usage guides are available at tsdown.dev.
Plugin compatibility spans Rollup, Rolldown, unplugin, and some Vite plugins in the broader ecosystem. That lets existing plugin investments carry over when switching bundlers.
For teams moving from tsup, main options and features align with tsup to ease migration. Examples and a starter StackBlitz are linked for getting started.
You run tsdown from the command line as part of your library release process after installing it like other Node bundlers.
Key features
- Rolldown-powered library bundling
- Oxc-backed declaration generation
- Rollup and Rolldown plugin support
- unplugin compatibility
- Some Vite plugin support
- Preconfigured library defaults
- tsup-compatible main options
- npm distribution
Use cases
- Building TypeScript libraries for npm
- Generating declaration files in CI
- Migrating library builds from tsup
- Rolldown-based package publishing
- Trying library bundling via StackBlitz starter