tsdown

Bundle TypeScript libraries with Rolldown and Oxc, generating automatic type declarations.

Updated Jan 22, 2025
One-click install
npx skills add https://github.com/lafllamme/personal-page --skill tsdown-lafllamme
Or copy as Structured Prompt for Agentβ–Ό
Please help me install this Agent Skill.
Skill: tsdown
Source: https://github.com/lafllamme/personal-page/tree/main/.cursor/skills/tsdown
Command: npx skills add https://github.com/lafllamme/personal-page --skill tsdown-lafllamme

SYSTEM DOCUMENTATION & REQUIREMENTS

πŸ’‘ This Skill includes references (resource) components.

What problem does it solve?

tsdown accelerates bundling for TypeScript libraries, delivering blazing-fast builds built on Rolldown and Oxc, plus automatic type declaration generation.

Core Features & Use Cases

  • Fast, deterministic builds for TS libraries across modern ecosystems.
  • Automatic generation of .d.ts declarations and export maps for publish readiness.
  • Seamless migration from tsup and broad plugin compatibility for common frameworks.

Quick Start

Run tsdown in your project to bundle TypeScript libraries with blazing speed and automatic type declarations.

Frequently Asked Questions about tsdown

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

FAQPage Schema
How do I bundle TypeScript libraries with automatic type declarations?β–Ό

You can bundle TypeScript libraries with automatic `.d.ts` generation using tsdown, which leverages Rolldown and Oxc to deliver blazing-fast builds and export maps for publish readiness.

What is the best way to speed up TypeScript library builds?β–Ό

To speed up TypeScript library builds, tsdown uses Rolldown and Oxc for fast, deterministic bundling, replacing slower toolchains while maintaining broad plugin compatibility across modern ecosystems.

Can I migrate from tsup to a faster bundler for pure-ESM outputs?β–Ό

Yes, you can migrate from tsup to tsdown for seamless transition while achieving pure-ESM outputs, automatic dts generation, and blazing-fast builds powered by Rolldown and Oxc.

Does tsdown support plugin-friendly configuration for modern toolchains?β–Ό

tsdown supports plugin-friendly configuration with broad compatibility for common frameworks, ensuring deterministic builds for TypeScript libraries across modern ecosystems.

Why generate export maps when bundling TypeScript libraries?β–Ό

Generating export maps when bundling TypeScript libraries ensures publish readiness by defining proper module resolution paths, which tsdown handles automatically alongside `.d.ts` declaration generation.