Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
onmax avatar

Tsdown

  • 1.1k installs
  • 696 repo stars
  • Updated July 27, 2026
  • onmax/nuxt-skills

tsdown is a Nuxt ecosystem skill for bundling TypeScript libraries with Rolldown, Unplugin, and Rollup plugin support plus lifecycle hooks for developers who publish typed npm packages with advanced build customization.

About

tsdown is a Nuxt-skills entry for bundling TypeScript libraries with advanced plugin support and lifecycle hooks using the Rolldown engine. It documents supported plugin types: native Rolldown, Unplugin (most unplugin-* packages), Rollup (often with type cast), and some Vite plugins. Examples show defineConfig with UnpluginVue for Rolldown and custom transform plugins that export raw .txt files as modules. Developers reach for tsdown when publishing TS libraries that need Rolldown-speed bundling with hooks beyond a minimal tsc emit. The skill covers plugin composition patterns rather than application routing or SSR setup.

  • Native Rolldown support with Unplugin, Rollup, and Vite plugin compatibility
  • Custom plugin authoring with transform hooks and type casting for Rollup plugins
  • Build lifecycle hooks including build:prepare, build:before, and build:done
  • Programmatic API for multiple builds with ESM/CJS, DTS, and exports options
  • Function and object syntax for hook registration

Tsdown by the numbers

  • 1,114 all-time installs (skills.sh)
  • +22 installs in the week ending Aug 5, 2026 (Skillselion tracking)
  • Ranked #171 of 1,435 DevOps & CI/CD skills by installs in the Skillselion catalog
  • Security screen: HIGH risk (skills.sh audit)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/onmax/nuxt-skills --skill tsdown

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1.1k
repo stars696
Security audit2 / 3 scanners passed
Last updatedJuly 27, 2026
Repositoryonmax/nuxt-skills

How do you bundle TypeScript libraries with Rolldown plugins?

Bundle TypeScript libraries with advanced plugin support and lifecycle hooks using the Rolldown engine.

Who is it for?

TypeScript library authors who need Rolldown-based bundling with Unplugin or Rollup plugin compatibility and custom transform hooks.

Skip if: Developers building full Nuxt applications, server-only backends, or projects that only need plain tsc compilation without bundling.

When should I use this skill?

A developer asks to bundle a TypeScript library with tsdown, Rolldown plugins, or custom transform lifecycle hooks.

What you get

tsdown config files, bundled library output, and plugin-enabled transform pipelines for TypeScript packages.

  • tsdown config
  • Bundled library artifacts

By the numbers

  • Documents 4 supported plugin categories: Rolldown, Unplugin, Rollup, and Vite

Files

SKILL.mdMarkdownGitHub ↗

tsdown

Rolldown + Oxc powered TypeScript bundler. Drop-in tsup replacement.

When to Use

  • Building TypeScript libraries
  • Generating .d.ts declarations
  • Publishing npm packages
  • Dual ESM/CJS output
  • Vue/React component libraries

Quick Start

npm i -D tsdown typescript
// tsdown.config.ts
import { defineConfig } from 'tsdown'

export default defineConfig({
  entry: 'src/index.ts',
  format: 'esm',
  dts: true,
  exports: true,
})
tsdown           # Build
tsdown --watch   # Watch mode

Reference Files

TaskFile
Config file, CLI, entry pointsconfig.md
Format, target, dts, exports, validationoutput.md
Shims, unbundle, watch, frameworks, WASMfeatures.md
Plugins, hooks, lint, programmatic, migrationadvanced.md

Loading Files

Consider loading these reference files based on your task:

  • [ ] references/config.md - if setting up tsdown.config.ts, CLI, or entry points
  • [ ] references/output.md - if configuring output format, target, .d.ts, exports, or validation
  • [ ] references/features.md - if using shims, unbundle, watch mode, framework integrations, or WebAssembly
  • [ ] references/advanced.md - if writing plugins, using linting/validation, programmatic API, or migrating from tsup

DO NOT load all files at once. Load only what's relevant to your current task.

Cross-Skill References

  • Library patterns → Use ts-library skill
  • Vue component libs → Use vue skill
  • Package management → Use pnpm skill

Related skills

How it compares

Choose tsdown when publishing TypeScript libraries that need Rolldown-speed bundling with Unplugin compatibility instead of Vite app-centric builds.

FAQ

Which plugin types does tsdown support?

tsdown supports native Rolldown plugins, most Unplugin packages, most Rollup plugins (sometimes with a type cast), and some Vite plugins that do not rely on Vite internals.

How do custom tsdown plugins transform files?

tsdown custom plugins implement transform hooks inside defineConfig. For example, a plugin can detect .txt files and emit export default JSON-stringified module code.

Is Tsdown safe to install?

skills.sh reports 2 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

DevOps & CI/CDintegrationsdevops

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.