# rollup-plugin-dts

> Bundle TypeScript .d.ts declaration files with Rollup

Source: https://talira.ai/catalog/rollup-plugin-dts-nkp9e6vz
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Plugin
- Categories: [developer tools / build / bundlers](https://talira.ai/categories/developer-tools/build/bundlers), [languages / typescript](https://talira.ai/categories/languages/typescript)
- Licence: LGPL-3.0-only[^1][^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Arpad Borsos](https://talira.ai/orgs/swatinem.md)

rollup-plugin-dts is a [Rollup](https://talira.ai/catalog/rollup-3a0frcmv.md) plugin that rolls up a library's TypeScript `.d.ts` declaration files into a single bundled declaration file, so a package can ship one `types` file. It marks external libraries (such as `@types` packages) as external automatically, and can load declaration maps for detailed source maps that keep Go to Definition working.

## Links

- GitHub: https://github.com/Swatinem/rollup-plugin-dts

## Problems it solves

- ship a single bundled .d.ts file with my TypeScript library
- roll up TypeScript declaration files with Rollup
- publish one types entry for an npm package

## Features

- bundles .d.ts files into one declaration file
- externals such as @types left out automatically
- declaration maps for Go to Definition

## Trust

Overall: 0.52 out of 1.
Signals: maintenance 0.72, adoption 0.59, momentum 0.30, community 0.71, backing 0.30, extensibility 0.00.

- last commit 6 days ago
- 18 commits in the last 90 days
- 872 GitHub stars
- 59 contributors
- accepts sponsorship (Github)
- backed by Arpad Borsos

## Related

- Works with [Rollup](https://talira.ai/catalog/rollup-3a0frcmv.md)
- Works with [TypeScript](https://talira.ai/catalog/typescript-w0asrgz8.md)

## Alternatives

- [tsdown](https://talira.ai/catalog/tsdown-8gyzrn37.md): Library bundler for TypeScript and JavaScript, built on Rolldown
- [unplugin-dts](https://talira.ai/catalog/unplugin-dts-sf05s9zj.md): Generate .d.ts declaration files from TypeScript or Vue sources in your bundler
- [tsup](https://talira.ai/catalog/tsup-evezd0pk.md): Zero-config bundler for TypeScript libraries, powered by esbuild
- [TSDX](https://talira.ai/catalog/tsdx-e3g7pf3f.md): Zero-config CLI for developing, testing and publishing TypeScript packages
- [Rolldown](https://talira.ai/catalog/rolldown-2aeecet9.md): Fast Rust bundler for JavaScript and TypeScript with a Rollup-compatible API
- [Rollup](https://talira.ai/catalog/rollup-3a0frcmv.md): ES module bundler for JavaScript libraries and apps, with tree shaking

## Sources

[^1]: https://github.com/Swatinem/rollup-plugin-dts/blob/master/COPYING.LESSER (checked 29 Nov 2026)
[^2]: https://github.com/Swatinem/rollup-plugin-dts/blob/master/package.json (checked 29 Nov 2026)
