Replacements for tsup
tsdown
tsdown is the successor recommended by tsup's own README. The project is effectively in maintenance mode. tsdown is built on Rolldown and is typically faster for library builds, with a largely drop-in config surface.
Config migration
Most tsup.config.ts files map 1:1 to tsdown.config.ts:
ts
import { defineConfig } from 'tsup'
import { defineConfig } from 'tsdown'
export default defineConfig({
entry: ['src/index.ts'],
format: ['esm', 'cjs'],
dts: true,
clean: true
})Package scripts
json
{
"scripts": {
"build": "tsup"
"build": "tsdown"
}
}Automated migration
npx tsdown-migratenpx skills add rolldown/tsdown --skill tsdown-migrate