tsdown

Bundle TypeScript and JavaScript libraries for npm using Rolldown with configurable output formats.

Updated Feb 26, 2026
One-click install
npx skills add https://github.com/heamlk/Python-Skill --skill tsdown-heamlk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tsdown
Source: https://github.com/heamlk/Python-Skill/tree/main/skills/tsdown
Command: npx skills add https://github.com/heamlk/Python-Skill --skill tsdown-heamlk

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Bundling TypeScript and JavaScript libraries for npm without slowing you down.

Core Features & Use Cases

  • Multi-format bundling (esm, cjs, iife, umd) for libraries and frameworks
  • Automatic TypeScript declaration generation (dts) and type-check friendly outputs
  • Migration support from tsup and ecosystem integration (React, Vue, Svelte, etc.)
  • CLI and config-file driven workflows for libraries and component libraries

Quick Start

Install tsdown and run the CLI to build your library.

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 multiple formats like esm and cjs?

You can bundle TypeScript libraries into multiple formats by using a CLI or config-file driven workflow that outputs esm, cjs, iife, and umd simultaneously, powered by Rolldown for blazing-fast build speeds.

How do I generate TypeScript declaration files when building a library?

You can generate TypeScript declaration files automatically during the build process using the built-in dts feature, which produces type-check friendly outputs alongside your bundled JavaScript libraries.

Can I migrate my existing tsup configuration to another bundling tool?

Yes, you can migrate your existing tsup configuration directly using the built-in migration support, which allows you to transition your library bundling workflow while gaining faster build speeds powered by Rolldown.

Does this bundling tool work with React, Vue, and Svelte component libraries?

Yes, this bundling tool works with React, Vue, and Svelte component libraries through built-in ecosystem integrations, supporting a config-file driven workflow specifically designed for building front-end component libraries.

What is the best way to speed up TypeScript library bundling for npm?

The best way to speed up TypeScript library bundling is to use a tool powered by Rolldown, which applies a config-driven workflow to bundle JavaScript and TypeScript libraries for npm with blazing-fast build speeds.