tsdown
Bundle TypeScript and JavaScript libraries with blazing-fast speed powered by Rolldown. Use when building libraries, generating type declarations, bundling for multiple formats, or migrating from tsup.
Security Assessment
Detected risks:
About tsdown
The tsdown skill is a powerful bundler designed specifically for TypeScript and JavaScript libraries, leveraging the speed and efficiency of Rolldown and Oxc. It addresses the common challenges developers face when building libraries for npm, such as the need for fast builds, generating type declarations, and supporting multiple output formats. By streamlining the bundling process, tsdown allows developers to focus on writing code rather than managing complex build configurations.
FAQ
How do I install tsdown?
You can install tsdown using the command: pnpm add -D tsdown.
Can I use tsdown to migrate from tsup?
Yes, tsdown provides a migration command: npx tsdown-migrate to assist with the transition.
What output formats does tsdown support?
tsdown supports multiple formats including ESM, CJS, IIFE, and UMD.
Is there a way to watch for changes during development?
Yes, you can use the watch mode by running: npx tsdown --watch.
Does tsdown support tree shaking and minification?
Yes, tsdown includes options for both tree shaking and minification to optimize your bundles.
All Files
42 filesInstall tsdown
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
antfu/skills