tsdown

Originally fromantfu/skills
Installation
Summary

Fast TypeScript/JavaScript library bundler powered by Rolldown with multi-format output and type declaration generation.

  • Supports four output formats (ESM, CJS, IIFE, UMD) with automatic dependency externalization and tree shaking
  • Generates TypeScript declaration files (.d.ts) with source maps, Vue SFC support, and custom compiler options
  • Includes watch mode, source maps, minification, package validation (publint/attw), and CI-aware configuration
  • Handles React, Vue, Solid, and Svelte component libraries with framework-specific optimizations and WASM support
  • Offers unbundle mode to preserve directory structure, executable bundling (SEA), and direct migration from tsup via tsdown-migrate
SKILL.md

tsdown - The Elegant Library Bundler

Blazing-fast bundler for TypeScript/JavaScript libraries powered by Rolldown and Oxc.

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

# Install
pnpm add -D tsdown
Related skills
Installs
353
Repository
hairyf/skills
GitHub Stars
19
First Seen
Jan 30, 2026