tsdown

Bundle TypeScript libraries with Rolldown and automatic type declarations.

490|23|Updated Sep 25, 2023
One-click install
npx skills add https://github.com/victorgarciaesgi/regle --skill tsdown-victorgarciaesgi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tsdown
Source: https://github.com/victorgarciaesgi/regle/tree/main/.agents/skills/tsdown
Command: npx skills add https://github.com/victorgarciaesgi/regle --skill tsdown-victorgarciaesgi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

tsdown solves the complexity of bundling TypeScript libraries by delivering fast builds, automatic type declarations, and an easy migration path from tsup for modern web and Node projects.

Core Features & Use Cases

  • Blazing-fast builds powered by Rolldown and Oxc with automatic .d.ts generation
  • Seamless exports and package configuration across esm/cjs/umd formats
  • Migration-friendly workflow for tsup users and plugin ecosystems
  • Use Cases: Library authors shipping TypeScript libraries for multiple targets and environments

Quick Start

Install tsdown as a dev dependency, create a minimal tsdown.config.ts, and run the build to generate outputs.

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 type declarations by using tsdown, which generates .d.ts files automatically and produces optimized outputs through Rolldown-based pipelines.

What is the fastest build tooling for generating ES modules from TypeScript?

Fast build tooling for generating ES modules from TypeScript is powered by Rolldown and Oxc, which enable blazing-fast builds while supporting esm, cjs, and umd formats.

Can I migrate my tsup configuration to a faster TypeScript bundler?

Yes, you can migrate your tsup configuration to tsdown, which offers a migration-friendly workflow for tsup users and supports existing plugin ecosystems.

Does this TypeScript bundler support multiple targets and platforms?

Yes, this TypeScript bundler supports multiple targets and platforms by allowing you to configure options for target, platform, and dts generation to produce optimized outputs.

How do I configure package exports for ESM and CJS formats?

You can configure package exports for ESM and CJS formats by defining settings in a minimal tsdown.config.ts, which handles seamless exports across modern frameworks.

Why are my TypeScript library builds slow and how can Rolldown help?

TypeScript library builds are often slow with standard tools, but Rolldown and Oxc solve this by providing blazing-fast builds and automated type generation for library authors.