Skip to main content

Built and signed on GitHub Actions

An even faster bundler powered by Rolldown.

This package works with Node.js, BunIt is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
This package works with Bun
JSR Score
100%
Published
a week ago (0.6.9)

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

Built and signed on
GitHub Actions
View transparency log

Add Package

npx jsr add @sxzz/tsdown

Import symbol

import * as tsdown from "@sxzz/tsdown";

Add Package

yarn dlx jsr add @sxzz/tsdown

Import symbol

import * as tsdown from "@sxzz/tsdown";

Add Package

pnpm dlx jsr add @sxzz/tsdown

Import symbol

import * as tsdown from "@sxzz/tsdown";

Add Package

bunx jsr add @sxzz/tsdown

Import symbol

import * as tsdown from "@sxzz/tsdown";