tsdown

Bundle TypeScript and JavaScript libraries into multiple formats with Rolldown.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/elzafon/ziska-next --skill tsdown-elzafon
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tsdown
Source: https://github.com/elzafon/ziska-next/tree/main/.agents/skills/tsdown
Command: npx skills add https://github.com/elzafon/ziska-next --skill tsdown-elzafon

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Bundling TypeScript and JavaScript libraries is made fast and simple by providing a unified toolchain powered by Rolldown, addressing the pain of lengthy, brittle setups.

Core Features & Use Cases

  • Multi-format bundles (ESM, CJS, IIFE, UMD) for npm libraries
  • Automatic TypeScript declarations generation and DTS support
  • Rich plugin ecosystem and workspace/monorepo support
  • CI-friendly options and migrations from tsup
  • Cross-framework compatibility for React, Vue, Solid, and Svelte libraries

Quick Start

Install tsdown as a dev dependency and run it to start bundling your library with a single command.

Frequently Asked Questions about tsdown

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

FAQPage Schema
What is the best way to bundle TypeScript libraries for multiple npm formats?

Bundling TypeScript libraries for multiple npm formats is best handled by a unified toolchain that generates ESM, CJS, IIFE, and UMD outputs. This approach replaces lengthy setups with config-driven options for cross-format builds.

How do I generate TypeScript declarations when bundling my npm package?

To generate TypeScript declarations when bundling your npm package, use a build system with automatic DTS generation support. This outputs type definitions alongside your ESM and CJS bundles.

Can I use Rolldown to bundle libraries for React, Vue, Solid, and Svelte?

Yes, you can use Rolldown to bundle libraries for React, Vue, Solid, and Svelte. It provides cross-framework compatibility to package component libraries for various ecosystems.

How do I migrate my TypeScript library build from tsup to a faster tool?

Migrating your TypeScript library build from tsup to a faster tool involves switching to a Rolldown-powered toolchain. This provides blazing-fast build speed while maintaining CI-friendly options.

Does this TypeScript bundling tool support workspace and monorepo builds?

Yes, this TypeScript bundling tool supports workspace and monorepo builds. It includes specific workspace support alongside a rich plugin ecosystem to manage multi-package repositories.