Back to Skills

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.

4,696stars251forksUpdated 4/24/2026

Security Assessment

Critical Risk(0/100)

Detected risks:

Destructive Operations([references/advanced-programmatic.md] rm -rf, [references/option-cleaning.md] rm -rf)
Sensitive File Access([references/advanced-plugins.md] .env, [references/advanced-programmatic.md] .env, [references/advanced-hooks.md] .env)
Command Injection([references/advanced-programmatic.md] child_process)
Security Score0/100

About tsdown

The tsdown skill is a powerful bundler designed specifically for TypeScript and JavaScript libraries, leveraging the speed and efficiency of Rolldown and Oxc. It addresses the common challenges developers face when building libraries for npm, such as the need for fast builds, generating type declarations, and supporting multiple output formats. By streamlining the bundling process, tsdown allows developers to focus on writing code rather than managing complex build configurations.

FAQ

How do I install tsdown?

You can install tsdown using the command: pnpm add -D tsdown.

Can I use tsdown to migrate from tsup?

Yes, tsdown provides a migration command: npx tsdown-migrate to assist with the transition.

What output formats does tsdown support?

tsdown supports multiple formats including ESM, CJS, IIFE, and UMD.

Is there a way to watch for changes during development?

Yes, you can use the watch mode by running: npx tsdown --watch.

Does tsdown support tree shaking and minification?

Yes, tsdown includes options for both tree shaking and minification to optimize your bundles.

All Files

42 files
references/option-output-directory.md4.3 KB
View
references/option-target.md4.0 KB
View
references/option-sourcemap.md5.4 KB
View
references/recipe-vue.md6.4 KB
View
README.md1.9 KB
View
SKILL.md11.6 KB
View
references/advanced-plugins.md6.6 KB
View
references/advanced-programmatic.md5.9 KB
View
references/option-cleaning.md4.8 KB
View
references/option-config-file.md5.1 KB
View
references/option-lint.md2.9 KB
View
LICENSE.md1.1 KB
View
SYNC.md0.1 KB
View
references/README.md4.6 KB
View
references/advanced-benchmark.md0.3 KB
View
references/advanced-hooks.md6.9 KB
View
references/advanced-rolldown-options.md2.3 KB
View
references/guide-getting-started.md2.6 KB
View
references/guide-introduction.md1.5 KB
View
references/option-css.md5.5 KB
View
references/option-dependencies.md7.3 KB
View
references/option-dts.md4.5 KB
View
references/option-minification.md3.5 KB
View
references/advanced-ci.md2.0 KB
View
references/guide-migrate-from-tsup.md4.2 KB
View
references/option-entry.md3.6 KB
View
references/option-package-exports.md5.2 KB
View
references/option-unbundle.md5.4 KB
View
references/reference-cli.md7.3 KB
View
references/option-cjs-default.md1.9 KB
View
references/option-exe.md3.3 KB
View
references/option-platform.md5.1 KB
View
references/option-watch-mode.md4.6 KB
View
references/option-log-level.md1.8 KB
View
references/option-shims.md5.5 KB
View
references/recipe-solid.md0.9 KB
View
references/option-output-format.md3.4 KB
View
references/option-tree-shaking.md5.1 KB
View
references/recipe-wasm.md2.6 KB
View
references/option-root.md1.8 KB
View
references/recipe-react.md5.9 KB
View
references/recipe-svelte.md1.4 KB
View

Install tsdown

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill

Repository

antfu/skills