# tsdown

> The Elegant Bundler for Libraries

Latest version **0.23.7** (published 2026-11-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install tsdown
pnpm add tsdown
yarn add tsdown
bun add tsdown
```

Provides the command `tsdown`.

## Health

**Score 65/100 (B)** — status: active.

Positive: esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads; no types; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.23.7 |
| Published | 2026-11-06 |
| First published | 2023-10-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | ^22.18.0 \|\| ^24.11.0 \|\| >=26.0.0 |
| Dependencies | 14 |
| Unpacked size | 180.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 4307 |
| Author | Kevin Deng <sxzz@sxzz.moe> |
| Maintainers | yyx990803, sxzz |

## Links

- npm: https://www.npmjs.com/package/tsdown
- Repository: https://github.com/rolldown/tsdown
- Homepage: http://tsdown.dev/
- Issues: https://github.com/rolldown/tsdown/issues
- Funding: https://github.com/sponsors/sxzz
- npm.io page: https://npm.io/package/tsdown

## Dependencies (14)

- [cac](https://npm.io/package/cac.md) ^7.1.0
- [defu](https://npm.io/package/defu.md) ^6.1.7
- [obug](https://npm.io/package/obug.md) ^3.0.0
- [tinyps](https://npm.io/package/tinyps.md) ^0.5.1
- [verkit](https://npm.io/package/verkit.md) ^0.5.0
- [empathic](https://npm.io/package/empathic.md) ^2.1.0
- [hookable](https://npm.io/package/hookable.md) ^6.1.2
- [rolldown](https://npm.io/package/rolldown.md) ~1.3.0
- [tinyexec](https://npm.io/package/tinyexec.md) ^1.3.1
- [picomatch](https://npm.io/package/picomatch.md) ^4.0.7
- [tinyglobby](https://npm.io/package/tinyglobby.md) ^0.2.17
- [unconfig-core](https://npm.io/package/unconfig-core.md) ^7.5.0
- [rolldown-plugin-dts](https://npm.io/package/rolldown-plugin-dts.md) ^0.30.0
- [import-without-cache](https://npm.io/package/import-without-cache.md) ^0.4.1

## Recent versions

- 0.23.7 (latest) — 2026-11-06
- 0.23.0-rc.1 (rc) — 2026-08-28
- 0.23.0-beta.3 (beta) — 2026-08-10
- 0.23.5 — 2026-11-03
- 0.23.4 — 2026-10-29
- 0.23.3 — 2026-10-28
- 0.23.2 — 2026-10-23
- 0.23.1 — 2026-10-10
- 0.23.0 — 2026-09-03
- 0.23.0-rc.0 — 2026-08-12
- 0.23.0-beta.2 — 2026-07-30
- 0.23.0-beta.1 — 2026-07-26
- 0.22.14 — 2026-07-23
- 0.22.13 — 2026-07-21
- 0.22.12 — 2026-07-19
- … 199 more at https://npm.io/package/tsdown/versions

## README

<img src="./docs/public/og-image.svg" alt="tsdown" width="100%" /><br>

# tsdown

[![Open on npmx][npmx-version-src]][npmx-href]
[![npm downloads][npmx-downloads-src]][npmx-href]
[![Unit Test][unit-test-src]][unit-test-href]
[![tsdown Starter StackBlitz][tsdown-starter-stackblitz-src]][tsdown-starter-stackblitz-href]

✨ The elegant bundler for libraries powered by [Rolldown](https://github.com/rolldown/rolldown).

## Features

- 🚀 **Blazing fast**: Build and generate declaration files powered by Oxc and Rolldown, incredibly fast!
- ♻️ **Powerful ecosystem**: Support Rollup, Rolldown, unplugin plugins, and some Vite plugins.
- ️🛠️ **Easy to use**: tsdown preconfigures everything you need to get started, so you can focus on writing code.
- 🔄 **Seamless migration**: Compatible with tsup's main options and features, ensuring a smooth transition.

## Documentation

For full documentation, visit [tsdown.dev](https://tsdown.dev).

## Install

```bash
npm i -D tsdown
```

## Usage

```bash
npx tsdown
```

## Sponsors

<p align="center">
  <a href="https://cdn.jsdelivr.net/gh/sxzz/sponsors/sponsors.svg">
    <img src='https://cdn.jsdelivr.net/gh/sxzz/sponsors/sponsors.svg'/>
  </a>
</p>

## Licenses

This project is licensed under the [MIT License](LICENSE).

<!-- Badges -->

[npmx-version-src]: https://npmx.dev/api/registry/badge/version/tsdown
[npmx-downloads-src]: https://npmx.dev/api/registry/badge/downloads-month/tsdown
[npmx-href]: https://npmx.dev/tsdown
[unit-test-src]: https://github.com/rolldown/tsdown/actions/workflows/unit-test.yml/badge.svg
[unit-test-href]: https://github.com/rolldown/tsdown/actions/workflows/unit-test.yml
[tsdown-starter-stackblitz-src]: https://developer.stackblitz.com/img/open_in_stackblitz_small.svg
[tsdown-starter-stackblitz-href]: https://stackblitz.com/github/rolldown/tsdown-starter-stackblitz

---
_Source: https://npm.io/package/tsdown · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
