{"enrichment":{"faq":[{"a":"tsdown is a TypeScript library bundler designed to simplify npm package distribution. tsdown handles the complexities of preparing TypeScript and JavaScript packages for npm distribution across multiple module formats. It automates bundling, format generation, and output optimization so you can focus on writing code rather than build configuration. The tool is released under the MIT license and supports generating type declaration files while optimizing bundle size.","q":"What is tsdown and what does it do for TypeScript library bundling?"},{"a":"Yes, tsdown excels at this core function. tsdown generates type declaration files and optimizes bundle size as a primary capability. It bundles TypeScript and JavaScript libraries for npm with multiple output formats, allowing you to produce ESM, CJS, and other module formats from a single configuration. This eliminates the need to manually manage separate build pipelines for different output targets.","q":"Can tsdown bundle TypeScript declarations and generate multiple output formats?"},{"a":"tsdown is positioned as a faster alternative to tsup with minimal configuration changes required. One of tsdown's key strengths is enabling migration from tsup to a faster bundler while maintaining compatibility with your existing setup. If you're currently using tsup and looking for improved build performance, tsdown offers a streamlined path forward without requiring a complete rebuild of your configuration.","q":"How does tsdown compare to tsup, and can I migrate from tsup to tsdown?"},{"a":"Yes, tsdown supports building React, Vue, Solid, or Svelte component libraries as a dedicated use case. This makes tsdown suitable for teams developing framework-specific component packages that need to be distributed across multiple module formats while maintaining proper type definitions and optimized bundle sizes.","q":"Does tsdown support building component libraries for React, Vue, Solid, or Svelte?"},{"a":"tsdown includes support for configuring workspace and monorepo builds with CI-aware settings. This capability allows you to manage multiple interdependent packages within a single repository while automatically adapting build behavior based on your continuous integration environment, making it well-suited for complex project structures.","q":"Can tsdown be used for workspace and monorepo builds with CI-aware settings?"},{"a":"tsdown provides comprehensive optimization features including minification, tree shaking, and source map generation for TypeScript bundles. The bundler focuses on reducing output size while maintaining code quality and debuggability. Additionally, tsdown offers watch mode for development workflows, allowing you to iterate quickly while building libraries with proper type declarations and multiple output formats.","q":"What features does tsdown provide for optimizing and monitoring TypeScript bundle output?"}],"shadow_tags":["rolldown-powered","oxc-compiler","multi-format-output","declaration-generation","tree-shake-enabled","npm-library-tool","framework-agnostic","monorepo-support","dev-dependency"],"summary_rewrite":"tsdown handles the complexities of preparing TypeScript and JavaScript packages for npm distribution across multiple module formats. It automates bundling, format generation, and output optimization so you can focus on writing code rather than build configuration."},"files":[{"bytes":14935,"path":".agents/skills/tsdown/SKILL.md","sha256":"0e9348c1699d2c28382f6244ab40b7fade372c6d00a0ef4e0d54c232a15d232f","url":"https://skillfed.io/files/sanity-io/next-sanity/tsdown/ff3771ff/SKILL.md"}],"id":"sanity-io/next-sanity/tsdown","links":{"html":"https://skillfed.io/sanity-io/next-sanity/tsdown","md":"https://skillfed.io/sanity-io/next-sanity/tsdown.md","repo":"https://github.com/sanity-io/next-sanity"},"meta":{"agents_supported":[],"first_seen":"2026-07-28","forks":109,"language":"TypeScript","last_updated":"2026-07-27","license":"MIT","name":"tsdown","publisher":"sanity-io","stars":951},"relations":{"similar":[{"id":"rolldown/tsdown/tsdown"},{"id":"hairyf/skills/tsdown"},{"id":"antfu/skills/tsdown"},{"id":"rolldown/tsdown/tsdown-migrate"},{"id":"onmax/nuxt-skills/tsdown"},{"id":"oakoss/agent-skills/tsdown"},{"id":"mindfold-ai/Trellis/ts-sdk-author"},{"id":"onmax/nuxt-skills/ts-library"},{"id":"wshobson/agents/monorepo-management"},{"id":"bobmatnyc/claude-mpm-skills/turborepo"}]},"slug":{"owner":"sanity-io","repo":"next-sanity","skill":"tsdown"},"version":"ff3771ff"}
