# qmhc/unplugin-dts

An unplugin for generating declaration (dts) files.

Repository: https://github.com/qmhc/unplugin-dts
Canonical: https://ross.abutalabs.com/products/unplugin-dts
Language: TypeScript
License Family: other
Topics: dts, react, typescript, vite, vue, tsc, volar, vue-tsc, esbuild, rolldown, rollup, rsbuild, rspack, svelte, unplugin, webpack
Last push: 2026-08-25T08:06:08+00:00

## Health v2 (maintenance only)
Score: 96/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 90, longevity 100
- inputs: {"age_days": 1919, "days_push": 8, "days_rel": 70, "gap_med": 15, "n_releases_24m": 16}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1528, forks 112 (observed 2026-08-28T04:04:58.606145+00:00)

## What it is
An unplugin that generates TypeScript declaration files (*.d.ts) from .ts(x) and .vue source files during library-mode builds. It supports Vite, Rollup, Rolldown, Webpack, Rspack, and Esbuild, and evolved from vite-plugin-dts.

## Use cases
- generate d.ts files when building a TypeScript library with Vite
- emit type declarations for a Vue component library
- bundle declaration files with Rollup or Rolldown
- produce .d.ts output in webpack or rspack builds
- replace vite-plugin-dts with a multi-bundler solution
- generate types for a Svelte library

## When to choose
- you publish a TypeScript/Vue/Svelte library and need declaration files in the build output
- you need one dts plugin that works across Vite, Rollup, Webpack, Rspack, and Esbuild
- you are migrating from vite-plugin-dts and want broader bundler support

## When to avoid
- you build applications rather than libraries and don't need to ship .d.ts files
- your project is plain JavaScript with no TypeScript types
- you need a bundler outside the supported list (e.g., esbuild-only exotic setups may need checking)

## Facets
- artifact type: plugin
- maturity: active
- function: build-tool, compiler, developer-tools
- domain: developer-tools, frontend, web-development
- platform: cli, cross-platform
- tags: dts, declaration-files, unplugin, vite-plugin, vue-tsc, library-mode, bundler-plugin, typescript, nodejs

## Member repositories
- qmhc/unplugin-dts (main) score 96

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:58.606145+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:31:31.382061+00:00, confidence not recorded.
  - readme: https://github.com/qmhc/unplugin-dts (fetched 2026-08-28T04:04:58.606145+00:00, sha a7348fb87506)
  - registry_npm: https://registry.npmjs.org/unplugin-dts (fetched 2026-08-29T11:34:11.002046+00:00, sha dbdf533083c8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
