An open API service indexing awesome lists of open source software.

https://github.com/sxzz/tsdown

An even faster bundler powered by Rolldown.
https://github.com/sxzz/tsdown

library oxc rolldown typescript

Last synced: 11 days ago
JSON representation

An even faster bundler powered by Rolldown.

Awesome Lists containing this project

README

        

# tsdown [![npm](https://img.shields.io/npm/v/tsdown.svg)](https://npmjs.com/package/tsdown) [![Unit Test](https://github.com/sxzz/tsdown/actions/workflows/unit-test.yml/badge.svg)](https://github.com/sxzz/tsdown/actions/workflows/unit-test.yml) [![JSR](https://jsr.io/badges/@sxzz/tsdown)](https://jsr.io/@sxzz/tsdown)

⚑️ An even faster bundler powered by [Rolldown](https://github.com/rolldown/rolldown).

## Features

- πŸš€ **Blazing fast**: Build and generate `.d.ts` powered by Oxc and Rolldown, incredibly fast!
- ♻️ **Powerful ecosystem**: Support Rollup / Rolldown / unplugin plugins, and some Vite plugins.
- πŸ“¦ **Out-of-box**: Support reusing configurations from Vite or Vitest.
- πŸ”„ **Seamless migration**: Compatible with tsup's main options and features, ensuring a smooth transition.

## Install

```bash
npm i tsdown
```

## Configuration

```ts
// tsdown.config.ts
import { defineConfig } from 'tsdown'

export default defineConfig({
entry: ['./src'],
// ...
})
```

## Migrate from tsup

```bash
npx tsdown migrate
```

Please make sure to commit your changes before migrating.

## Credits

This project also partially contains code derived or copied from [tsup](https://github.com/egoist/tsup).

- [tsup](https://github.com/egoist/tsup)
- [pkgroll](https://github.com/privatenumber/pkgroll)

## Sponsors





## License

[MIT](./LICENSE) License Β© 2024-PRESENT [三咲智子 Kevin Deng](https://github.com/sxzz)