tsdown

Bundle TypeScript and JavaScript libraries with Rolldown and Oxc.

1|Updated Jan 11, 2026
One-click install
npx skills add https://github.com/CloudDevCrusader/riddle-rush-mono-repo --skill tsdown-clouddevcrusader
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tsdown
Source: https://github.com/CloudDevCrusader/riddle-rush-mono-repo/tree/main/.agents/skills/tsdown
Command: npx skills add https://github.com/CloudDevCrusader/riddle-rush-mono-repo --skill tsdown-clouddevcrusader

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the process of bundling TypeScript and JavaScript libraries, offering a faster and more efficient alternative to existing bundlers for library development.

Core Features & Use Cases

  • Fast Bundling: Leverages Rolldown and Oxc for high-speed bundling.
  • Library Focus: Optimized for creating npm packages, generating type declarations, and supporting multiple output formats (ESM, CJS, etc.).
  • Migration Friendly: Designed for easy migration from tsup.
  • Use Case: When developing a new npm package or migrating an existing one from tsup, use this Skill to configure its build process, generate type definitions, and bundle it for various module systems.

Quick Start

Use the tsdown skill to bundle your TypeScript library with default settings.

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 for npm using Rolldown?

You can bundle TypeScript libraries for npm with this Skill by leveraging Rolldown and Oxc for high-speed compilation, generating type declarations, and configuring multiple output formats including ESM and CJS.

Can I generate multiple output formats like ESM and CJS for JavaScript libraries?

Yes, this Skill supports generating multiple output formats including ESM, CJS, IIFE, and UMD for JavaScript libraries, while applying tree shaking and minification during the bundling process.

What is the best way to migrate an npm package from tsup to Rolldown?

The best way to migrate an npm package from tsup is using this migration-friendly Skill, which configures the Rolldown build process and generates type definitions for various module systems.

Does bundling TypeScript with Rolldown support source map generation?

Yes, bundling TypeScript with Rolldown supports source map generation alongside tree shaking and minification, ensuring optimized and debuggable npm package builds.

Why use Rolldown and Oxc for JavaScript library bundling instead of other tools?

Rolldown and Oxc provide high-speed compilation for JavaScript library bundling, offering a faster and more efficient alternative to existing bundlers specifically optimized for library development.