# unplugin-dts

> Generate .d.ts declaration files from TypeScript or Vue sources in your bundler

Source: https://talira.ai/catalog/unplugin-dts-sf05s9zj
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: MIT[^1][^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [qmhc](https://talira.ai/orgs/qmhc.md)

unplugin-dts (formerly vite-plugin-dts) generates TypeScript declaration files (`*.d.ts`) from `.ts`, `.tsx` or `.vue` source files when building a library, for example in [Vite](https://talira.ai/catalog/vite-2kbqmjmm.md)'s library mode. Rewritten as an unplugin, it now works with Vite, Rollup, Rolldown, Webpack, Rspack and esbuild, and can bundle the types into one file. The Vite-only vite-plugin-dts package is still published but no longer recommended. It needs Node.js 20 or later.

## Links

- GitHub: https://github.com/qmhc/unplugin-dts

## Problems it solves

- generate TypeScript declarations when building a Vite library
- emit .d.ts files for a Vue component library
- bundle a library's types into one file

## Features

- generates .d.ts files from TypeScript and Vue sources
- works with Vite, Rollup, Rolldown, Webpack, Rspack and esbuild
- can bundle types into one file

## Trust

Overall: 0.53 out of 1.
Signals: maintenance 0.70, adoption 0.64, momentum 0.42, community 0.69, backing 0.30, extensibility 0.00.

- last commit 26 days ago
- 15 commits in the last 90 days
- latest release unplugin-dts@1.1.2 58 days ago
- 1.5k GitHub stars
- 51 contributors
- backed by qmhc

## Related

- Works with [Vite](https://talira.ai/catalog/vite-2kbqmjmm.md)

## Alternatives

- [tsdown](https://talira.ai/catalog/tsdown-8gyzrn37.md): Library bundler for TypeScript and JavaScript, built on Rolldown
- [rollup-plugin-dts](https://talira.ai/catalog/rollup-plugin-dts-nkp9e6vz.md): Bundle TypeScript .d.ts declaration files with Rollup
- [tsup](https://talira.ai/catalog/tsup-evezd0pk.md): Zero-config bundler for TypeScript libraries, powered by esbuild
- [Vite](https://talira.ai/catalog/vite-2kbqmjmm.md): Next Generation Frontend Tooling
- [TSDX](https://talira.ai/catalog/tsdx-e3g7pf3f.md): Zero-config CLI for developing, testing and publishing TypeScript packages
- [esbuild](https://talira.ai/catalog/esbuild-198nyf0k.md): An extremely fast bundler for the web

## Sources

[^1]: https://github.com/qmhc/unplugin-dts/blob/main/packages/unplugin-dts/LICENSE (checked 29 Nov 2026)
[^2]: https://github.com/qmhc/unplugin-dts/blob/main/packages/vite-plugin-dts/LICENSE (checked 29 Nov 2026)
