Agent skill · Code Review & Quality

tsdown

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.

antfugithub.com/antfuGitHub ↗
claude-codeMIT
Install
npx skills add antfu/skills --skill tsdown --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 42
SKILL.md size: 13 KB
Bundled scripts: none
Path: skills/tsdown/SKILL.md
Open the folder on GitHub →
Where it comes from
Source: antfu/skills
Stars: 5,709
Language: TypeScript
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# tsdown - The Elegant Library Bundler Blazing-fast bundler for TypeScript/JavaScript libraries powered by Rolldown and Oxc. ## Runtime Requirement `tsdown` requires **Node.js 22.18.0 or higher to run** (build-time only). However, the bundled output can target much lower Node.js versions via the [`target`](references/option-target.md) option, so libraries built with tsdown are **not locked to Node.js 22+ at runtime**. If your package needs to support Node.js 18 / 20: - **Build with Node.js 22+ in CI** (e.g. set `target: 'node18'` or `target: 'node20'`). - **Test the built output (or the packed tarball) on the lower Node.js versions** you intend to support — e.g. using a matrix job that runs the published package's tests on Node.js 18 / 20 / 22. ## When to Use - 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 ## Quick Start ```bash # Install pnpm add -D tsdown # Basic usage npx tsdown # With config file npx tsdown --config

What's inside
Steps it walks through
  1. Runtime Requirement
  2. When to Use
  3. Quick Start
  4. Basic Configuration
  5. Core References
  6. Build Options
  7. Dependency Handling
  8. Output Enhancement
  9. Framework & Runtime Support
  10. Common Patterns
  11. Basic Library Bundle
  12. Multiple Entry Points
  13. Browser Library (IIFE/UMD)
  14. React Component Library
Ships with 24 files
  • LICENSE.md
  • README.md
  • SYNC.md
  • references/README.md
  • references/advanced-benchmark.md
  • references/advanced-ci.md
  • references/advanced-hooks.md
  • references/advanced-plugins.md
  • references/advanced-programmatic.md
  • references/advanced-rolldown-options.md
  • references/guide-getting-started.md
  • references/guide-introduction.md
  • references/guide-migrate-from-tsup.md
  • references/option-cjs-default.md
  • references/option-cleaning.md
  • references/option-config-file.md
  • references/option-css.md
  • references/option-dependencies.md
  • references/option-dts.md
  • references/option-entry.md
  • references/option-exe.md
  • references/option-lint.md
  • references/option-log-level.md
  • references/option-minification.md
first 24 of 42
Commands it runs
Install
pnpm add -D tsdown
Basic usage
npx tsdown
With config file
npx tsdown --config tsdown.config.ts
Watch mode
npx tsdown --watch
Migrate from tsup
npx tsdown-migrate
More from skills
All skills →
About this skill
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.

How do I install it?

Run `npx skills add antfu/skills --skill tsdown --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From antfu/skills, a repository with 5,709 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going