{"enrichment":{"faq":[{"a":"tsdown is a modern bundler built on Rolldown that streamlines the process of bundling TypeScript libraries for npm publication. To bundle your TypeScript library, you configure tsdown with your entry points and desired output formats (ESM, CJS, IIFE, or UMD), then run the build command. tsdown automatically handles TypeScript compilation, generates type declarations (.d.ts files), and optimizes your bundle with tree shaking and minification, making it straightforward to prepare your library for distribution.","q":"How do you bundle a TypeScript library with tsdown?"},{"a":"tsdown is designed as a modern alternative to tsup, offering a streamlined experience for developers looking to migrate their build tooling. While both tools bundle TypeScript/JavaScript libraries for npm, tsdown is built on Rolldown for improved performance and provides a cleaner configuration approach. If you're considering a migration from tsup to tsdown, the tool is designed to require minimal configuration changes, allowing you to transition your existing projects with ease while gaining the benefits of faster build times and modern bundling capabilities.","q":"What is the difference between tsdown vs tsup comparison?"},{"a":"Yes, tsdown excels at generating type declarations and multi-format outputs. The bundler automatically produces .d.ts declaration files alongside your compiled code and supports generating ESM, CJS, IIFE, and UMD formats in a single build. This comprehensive output capability makes tsdown ideal for publishing libraries to npm that need to support diverse consumption patterns, whether users are importing via ES modules, CommonJS, or browser-based IIFE/UMD bundles.","q":"Can tsdown generate type declarations and support multiple output formats?"},{"a":"tsdown is well-suited for building component libraries across multiple frameworks including React, Vue, Solid, and Svelte. The bundler's support for generating multiple output formats, automatic type declaration generation, and tree shaking capabilities make it an excellent choice for component library authors. Whether you're creating a single-framework library or a framework-agnostic component collection, tsdown provides the bundling and optimization features needed to prepare your components for npm publication.","q":"Is tsdown suitable for building React, Vue, Solid, or Svelte component libraries?"},{"a":"tsdown optimizes bundle size through built-in tree shaking and minification features that remove unused code and reduce file sizes automatically. By leveraging Rolldown's modern bundling engine, tsdown analyzes your code dependencies and eliminates dead code paths, then applies minification to further reduce the final bundle size. These optimizations happen transparently during the build process, ensuring your published npm packages are as lean and efficient as possible without requiring manual configuration.","q":"How does tsdown optimize bundle size with tree shaking and minification?"},{"a":"tsdown is designed to require minimal configuration for npm package publication. You typically specify your entry points, desired output formats (ESM, CJS, IIFE, UMD), and any framework-specific settings if building component libraries. The bundler handles the rest automatically\u2014including TypeScript compilation, type declaration generation, tree shaking, and minification. For developers migrating from tsup to tsdown, the configuration approach is streamlined to make the transition smooth while maintaining compatibility with your existing npm publishing workflows.","q":"What configuration is needed to set up tsdown for npm package publication?"}],"shadow_tags":["library-bundling","typescript-tooling","npm-publishing","multi-format-output","type-generation","performance-optimized","framework-agnostic","monorepo-support","cli-tool","asset-pipeline"],"summary_rewrite":"tsdown is a modern bundler built on Rolldown that streamlines packaging TypeScript and JavaScript libraries for distribution. It combines fast build performance with automatic declaration file generation, making it ideal for developers preparing libraries for npm publication."},"files":[{"bytes":13528,"path":"skills/tsdown/SKILL.md","sha256":"63554c51755dc4d719d0f97917a7e1c6052d1ddc8063192d9a680a6604c78004","url":"https://skillfed.io/files/rolldown/tsdown/tsdown/001e415d/SKILL.md"}],"gist":{"api_url":"https://skillfed.io/api/skills/rolldown/tsdown/tsdown.json","as_of":"2026-07-27","description":"tsdown is a modern bundler built on Rolldown that streamlines the process of bundling TypeScript libraries. npx skillfed install rolldown/tsdown/tsdown","install":{"file":"skills/tsdown/SKILL.md","manual":["git clone https://github.com/rolldown/tsdown","cp -r tsdown/skills/tsdown ~/.claude/skills/tsdown"],"primary":"npx skillfed install rolldown/tsdown/tsdown","version":"001e415d"},"kind":"skill","mirror_url":"https://skillfed.io/rolldown/tsdown/tsdown.md","similar":[{"id":"hairyf/skills/tsdown","name":"tsdown","publisher":"hairyf/skills","url":"https://skillfed.io/hairyf/skills/tsdown"},{"id":"antfu/skills/tsdown","name":"tsdown","publisher":"antfu/skills","url":"https://skillfed.io/antfu/skills/tsdown"},{"id":"sanity-io/next-sanity/tsdown","name":"tsdown","publisher":"sanity-io/next-sanity","url":"https://skillfed.io/sanity-io/next-sanity/tsdown"},{"id":"rolldown/tsdown/tsdown-migrate","name":"tsdown-migrate","publisher":"rolldown/tsdown","url":"https://skillfed.io/rolldown/tsdown/tsdown-migrate"},{"id":"oakoss/agent-skills/tsdown","name":"Tsdown","publisher":"oakoss/agent-skills","url":"https://skillfed.io/oakoss/agent-skills/tsdown"}],"title":"tsdown by rolldown: Bundle TypeScript/JavaScript libraries for npm publication \u2014 SkillFed","use":{"when":["tsdown is designed as a modern alternative to tsup, offering a streamlined experience for developers looking to migrate their build tooling.","Yes, tsdown excels at generating type declarations and multi-format outputs."]},"verify":{"line":"Read SKILL.md below before installing","n_files":41},"what":{"lead":"tsdown is a modern bundler built on Rolldown that streamlines the process of bundling TypeScript libraries for npm publication. To bundle your TypeScript library, you configure tsdown with your entry points and desired output formats (ESM, CJS, IIFE, or UMD), then run the build command. tsdown automatically handles TypeScript compilation, generates type declarations (.d.ts files), and optimizes your bundle with tree shaking and minification, making it straightforward to prepare your library for distribution."}},"id":"rolldown/tsdown/tsdown","links":{"html":"https://skillfed.io/rolldown/tsdown/tsdown","md":"https://skillfed.io/rolldown/tsdown/tsdown.md","repo":"https://github.com/rolldown/tsdown"},"meta":{"agents_supported":[],"first_seen":"2026-07-28","forks":183,"language":"TypeScript","last_updated":"2026-07-27","license":"MIT","name":"tsdown","publisher":"rolldown","stars":4183},"relations":{"similar":[{"id":"hairyf/skills/tsdown"},{"id":"antfu/skills/tsdown"},{"id":"sanity-io/next-sanity/tsdown"},{"id":"rolldown/tsdown/tsdown-migrate"},{"id":"onmax/nuxt-skills/tsdown"},{"id":"oakoss/agent-skills/tsdown"},{"id":"onmax/nuxt-skills/ts-library"},{"id":"mindfold-ai/Trellis/ts-sdk-author"},{"id":"affaan-m/ECC/vite-patterns"},{"id":"onmax/nuxt-skills/vite"}]},"slug":{"owner":"rolldown","repo":"tsdown","skill":"tsdown"},"version":"001e415d"}
