tsdown

Bundle TypeScript and JavaScript libraries with Rolldown and Oxc.

2|1|Updated Feb 16, 2026
One-click install
npx skills add https://github.com/pi-ohm/pi-ohm --skill tsdown-pi-ohm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tsdown
Source: https://github.com/pi-ohm/pi-ohm/tree/main/.agents/skills/tsdown
Command: npx skills add https://github.com/pi-ohm/pi-ohm --skill tsdown-pi-ohm

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the process of bundling TypeScript and JavaScript libraries, significantly reducing build times and simplifying complex configurations.

Core Features & Use Cases

  • Fast Bundling: Leverages Rolldown (Rust) for unparalleled build speed.
  • Comprehensive Configuration: Supports various formats (ESM, CJS, IIFE, UMD), type declarations, plugins, and hooks.
  • Migration Friendly: Offers tools to migrate from tsup with ease.
  • Use Case: You're building a new npm package and need to output it in both ESM and CJS formats with type declarations. This Skill handles it efficiently with a single configuration.

Quick Start

Use tsdown to bundle your project's entry point at src/index.ts into ESM and CJS formats.

Frequently Asked Questions about tsdown

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I bundle a TypeScript library into both ESM and CJS formats?

Bundling a TypeScript library into ESM and CJS requires configuring a single entry point to output multiple format targets. This Skill handles dual format generation simultaneously while producing type declarations.

What is the fastest way to bundle JavaScript libraries for npm packages?

Bundling JavaScript libraries at high speed requires using a Rust-based build tool. This Skill leverages Rolldown and Oxc to achieve rapid build performance for npm package development and CLI tools.

Does this bundler support migrating an existing tsup configuration?

Migrating an existing tsup configuration is fully supported. This Skill provides dedicated migration tools to transition your library build setup smoothly while maintaining existing output formats and plugin hooks.

Can I generate type declarations while bundling TypeScript frameworks?

Generating type declarations while bundling TypeScript frameworks is fully supported. The build process integrates declaration generation directly alongside ESM, CJS, IIFE, and UMD output formats.

What Node.js version is required for Rolldown library bundling?

Rolldown library bundling requires Node.js 20.19 or higher for optimal performance. Ensure your development environment meets this prerequisite version before executing the build process.

What output formats are supported when bundling JavaScript libraries?

Supported output formats include ESM, CJS, IIFE, and UMD when bundling JavaScript libraries. This ensures compatibility across diverse environments ranging from modern bundlers to legacy module systems.