https://github.com/rolldown/tsdown
The elegant bundler for libraries powered by Rolldown
https://github.com/rolldown/tsdown
bundler library oxc rolldown typescript
Last synced: 15 days ago
JSON representation
The elegant bundler for libraries powered by Rolldown
- Host: GitHub
- URL: https://github.com/rolldown/tsdown
- Owner: rolldown
- License: mit
- Created: 2024-03-08T14:25:35.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-11-27T19:00:46.000Z (about 2 months ago)
- Last Synced: 2025-11-27T23:35:14.919Z (about 2 months ago)
- Topics: bundler, library, oxc, rolldown, typescript
- Language: TypeScript
- Homepage: https://tsdown.dev
- Size: 4.67 MB
- Stars: 3,012
- Watchers: 11
- Forks: 117
- Open Issues: 71
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome - rolldown/tsdown - The elegant bundler for libraries powered by Rolldown (TypeScript)
- awesome - tsdown - The elegant bundler for libraries powered by Rolldown. (Bundle Tool)
README

# tsdown
[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-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
```
## Migrate from tsup
```bash
npx tsdown migrate
```
Please make sure to commit your changes before migrating. For more details, see the [Migration Guide](https://tsdown.dev/guide/migrate-from-tsup).
## Credits
This project also partially contains code derived or copied from the following projects:
- [tsup](https://github.com/egoist/tsup)
- [pkgroll](https://github.com/privatenumber/pkgroll)
## Sponsors
## Licenses
This project is licensed under the [MIT License](LICENSE).
[npm-version-src]: https://img.shields.io/npm/v/tsdown.svg
[npm-version-href]: https://npmjs.com/package/tsdown
[npm-downloads-src]: https://img.shields.io/npm/dm/tsdown
[npm-downloads-href]: https://www.npmcharts.com/compare/tsdown?interval=30
[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