tsdown

Bundle TypeScript and JavaScript libraries with Rolldown and generate type declarations.

4.2k|186|Updated Mar 8, 2024
One-click install
npx skills add https://github.com/rolldown/tsdown --skill tsdown-rolldown
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tsdown
Source: https://github.com/rolldown/tsdown/tree/main/skills/tsdown
Command: npx skills add https://github.com/rolldown/tsdown --skill tsdown-rolldown

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

tsdown bundles TypeScript and JavaScript libraries with blazing-fast speed powered by Rolldown.

Core Features & Use Cases

  • Fast library bundling with tree-shaking for libraries
  • Type declaration generation (DTS) and type-checking integration
  • Multi-format builds (esm, cjs, iife, umd) and migration support from tsup
  • Framework compatibility wrappers and workspace/monorepo support
  • CI-aware configuration and reproducible builds

Quick Start

Install tsdown as a dev dependency and run npx tsdown to perform your first bundle.

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 multi-format outputs?

tsdown bundles TypeScript libraries into multi-format outputs by leveraging Rolldown for blazing-fast build speeds and tree-shaking.

Can I generate type declarations when bundling JavaScript libraries?

Yes, tsdown supports type declaration generation (DTS) and integrates type-checking directly into your library bundling workflow.

Does tsdown work with React, Vue, Solid, and Svelte frameworks?

tsdown provides framework compatibility wrappers to bundle libraries for React, Vue, Solid, and Svelte environments.

What is the best way to migrate from tsup to a faster bundler?

tsdown provides migration support from tsup, enabling you to transition library builds to Rolldown-powered blazing-fast speeds.

How do I configure workspace and monorepo library builds?

tsdown supports workspace configurations and monorepo setups with CI-aware configuration and reproducible builds across multiple entry points.