tsdown

Bundle TypeScript and JavaScript libraries with blazing-fast speed powered by Rolldown. Use when building libraries, generating t…

antfu ↓ 12k
Claude Code
View source ↗

What it does

  • Build with Node.js 22+ in CI (e.g. set target: 'node18' or target: 'node20').
  • Building TypeScript/JavaScript libraries for npm
  • Generating TypeScript declaration files (.d.ts)
  • Bundling for multiple formats (ESM, CJS, IIFE, UMD)
  • Optimizing bundles with tree shaking and minification
  • Migrating from tsup with minimal changes
  • Building React, Vue, Solid, or Svelte component libraries

Requirements & configuration

  • If your package needs to support Node.js 18 / 20:
  • | CSS handling | [experimental] css: { ... } — full pipeline with preprocessors, Lightning CSS, PostCSS, CSS modules, code splitting; requires @tsdown/css | option-css |
  • Cross-Platform Executable (requires @tsdown/exe)

Derived from the skill's own SKILL.md documentation · extracted 2026-07-23

Bundle TypeScript and JavaScript libraries with blazing-fast speed powered by Rolldown. Use when building libraries, generating type declarations, bundling for multiple formats, or migrating from tsup.

Source

Repository: https://github.com/antfu/skills

tsdown FAQ

What does the tsdown skill do?

Bundle TypeScript and JavaScript libraries with blazing-fast speed powered by Rolldown. Use when building libraries, generating type declarations, bundling for multiple formats, or migrating from tsup. Build with Node.js 22+ in CI (e.g. set target: 'node18' or target: 'node20'). Building TypeScript/JavaScript libraries for npm

What does tsdown require?

If your package needs to support Node.js 18 / 20: | CSS handling | [experimental] css: { ... } — full pipeline with preprocessors, Lightning CSS, PostCSS, CSS modules, code splitting; requires @tsdown/css | option-css | Cross-Platform Executable (requires @tsdown/exe)

How do I install tsdown?

Run: npx -y skills add https://github.com/antfu/skills --skill tsdown --agent claude-code — the source lives at github.com/antfu/skills.

Maintain tsdown?

Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.

tsdown on getagentictools
[![tsdown on getagentictools](https://getagentictools.com/badge/skills/antfu-skills-tsdown.svg)](https://getagentictools.com/skills/antfu-skills-tsdown?ref=badge)
npx agentictools info skills/antfu-skills-tsdown

The second line is the CLI lookup for this page — handy in READMEs and docs.