Skip to content
/ tsdown Public

An even faster bundler powered by Rolldown.

License

Notifications You must be signed in to change notification settings

sxzz/tsdown

Repository files navigation

tsdown npm Unit Test JSR

⚡️ An even faster bundler powered by Rolldown.

Features

  • 🚀 Blazing fast: Build and generate .d.ts powered by Oxc and Rolldown, incredibly fast!
  • ♻️ Powerful ecosystem: Support Rollup / Rolldown / Vite / unplugin 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

npm i tsdown

Configuration

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

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

Migrate from tsup

npx tsdown migrate

Please make sure to commit your changes before migrating.

Credits

This project also partially contains code derived or copied from tsup.

Sponsors

License

MIT License © 2024-PRESENT 三咲智子 Kevin Deng