1---2name: tsdown3description: tsdown is a fast and elegant TypeScript library bundler powered by Rolldown and Oxc4---56tsdown is a next-generation TypeScript library bundler built on Rolldown and Oxc. It provides blazing-fast builds, automatic `.d.ts` generation, and seamless migration from tsup. Supports Rolldown/Rollup/Unplugin plugins and features smart dependency handling.78> This documentation is based on **tsdown v0.20.1**.910**Anthony's Preferences:**1112- Build pure-ESM packages, avoid CJS13- Always enable `dts` option for type declarations14- Enable `exports` option for auto-generated package exports1516## Core1718| Topic | Description | Reference |19| ------------- | ------------------------------------------------- | ---------------------------------------- |20| Configuration | Config file setup, defineConfig, multiple configs | [core-config](references/core-config.md) |21| CLI | Command-line interface and options | [core-cli](references/core-cli.md) |22| Entry Points | Entry files, aliases, glob patterns | [core-entry](references/core-entry.md) |2324## Build Options2526| Topic | Description | Reference |27| ----------------- | ------------------------------------------------------ | ---------------------------------------------------------------- |28| Output | Format (ESM/CJS/IIFE/UMD), directory, target, platform | [options-output](references/options-output.md) |29| Declaration Files | .d.ts generation, isolatedDeclarations, sourcemaps | [options-dts](references/options-dts.md) |30| Dependencies | External, noExternal, dependency bundling | [options-dependencies](references/options-dependencies.md) |31| Package Exports | Auto-generating exports, main, module fields | [options-package-exports](references/options-package-exports.md) |3233## Features3435| Topic | Description | Reference |36| ------------- | -------------------------------------- | ------------------------------------------------------------ |37| Optimization | Tree shaking, minification, sourcemaps | [features-optimization](references/features-optimization.md) |38| Shims | CJS/ESM compatibility shims | [features-shims](references/features-shims.md) |39| Unbundle Mode | Bundleless transpile-only builds | [features-unbundle](references/features-unbundle.md) |40| Watch Mode | Auto-rebuild on file changes | [features-watch](references/features-watch.md) |4142## Advanced4344| Topic | Description | Reference |45| ---------------- | ------------------------------------------ | -------------------------------------------------------------------- |46| Plugins | Rolldown, Unplugin, Rollup, Vite plugins | [advanced-plugins](references/advanced-plugins.md) |47| Hooks | Build lifecycle hooks | [advanced-hooks](references/advanced-hooks.md) |48| Programmatic API | Using tsdown from code | [advanced-programmatic](references/advanced-programmatic.md) |49| Rolldown Options | Customizing inputOptions and outputOptions | [advanced-rolldown-options](references/advanced-rolldown-options.md) |5051## Recipes5253| Topic | Description | Reference |54| ----------------- | ------------------------------ | ------------------------------------------------------ |55| Framework Support | Vue and React library bundling | [recipes-frameworks](references/recipes-frameworks.md) |56| Migration | Migrating from tsup | [recipes-migration](references/recipes-migration.md) |