
Description
tsdown is an agent skill from the antfu skills collection, listed on skills.sh. It helps an AI agent bundle TypeScript and JavaScript libraries with tsdown, a fast bundler powered by Rolldown and Oxc. The skill covers multi-format output, so a library can be built to ESM, CJS, IIFE and UMD, and it generates type declarations for the package. It notes that peer dependencies are externalized automatically and that tree shaking removes unused code. The skill explains the runtime requirement: tsdown needs Node.js 22.18.0 or later to run at build time, but the bundled output can target much older Node.js versions through the target option. It gives the steps to support Node.js 18 or 20 in a library: build on Node.js 22 or later in continuous integration, set the target to node18 or node20, and test the built output or the packed tarball on the older versions you intend to support, for example with a matrix job. The skill says when to use tsdown, such as building libraries, generating type declarations and bundling for several formats. A skill is a SKILL.md file that an AI agent loads when a task calls for it. It is listed as free on skills.sh.…
Highlights
- ESM, CJS, IIFE and UMD output
- Type declaration generation
- Automatic peer dependency externalization
- Guidance on targeting older Node.js versions
Ratings & Reviews
No ratings yet
Be the first to rate tsdown.
People also visit
tsdown FAQ
What does the tsdown skill do?
It helps an AI agent bundle a TypeScript or JavaScript library with tsdown, including type declarations.
How do I install it?
Run: npx skills add https://github.com/antfu/skills --skill tsdown
Is it free?
Yes. The skill is listed as free on skills.sh.
Which Node.js version does tsdown need?
Node.js 22.18.0 or higher to run at build time. The output can target older versions.
Can a library support Node.js 18 or 20?
Yes. The skill says to set the target to node18 or node20, build in CI on Node.js 22 or later, and test on the older versions.
Which formats can it output?
ESM, CJS, IIFE and UMD.
What are the best tsdown alternatives?
Popular alternatives to tsdown include tsdown, tsdown and ts-library. See all tsdown alternatives

















