Home
Softono

Unplugin Dts

Open source TypeScript
1.5K
Stars
111
Forks
18
Issues
7
Watchers
3 months
Last Commit

 About Unplugin Dts

An unplugin for generating declaration (dts) files.

Platforms

Web Self-hosted

Languages

TypeScript

Links

Need Help Installing Unplugin Dts?

We provide expert installation service for this software. Our team will install, configure, and secure Unplugin Dts on your server. plans start at just $30.

Unplugin Dts

View on GitHub

unplugin-dts

An unplugin that generates declaration files (*.d.ts) from .ts(x) or .vue source files when using library mode.

version version license

It evolved from vite-plugin-dts, and after being rewritten with unplugin, it has become more versatile.

English | 中文

Installation

Requires Node.js >= 20.

pnpm i -D unplugin-dts

Previous only for Vite (not recommend):

pnpm i -D vite-plugin-dts

Quick Start

import dts from 'unplugin-dts/vite'

export default defineConfig({
  plugins: [dts()],
})

Supports Vite, Rollup, Rolldown, Webpack, Rspack and Esbuild. See Usage for detailed bundler setup.

Documentation

  • Usage - Installation and bundler configuration
  • Options - Full plugin options reference
  • FAQ - Frequently asked questions and solutions
  • Migration (v4 → v5) - Migrating from vite-plugin-dts v4

Contributors

Thanks for all the contributions!

contributors

A real project using this plugin: Vexip UI.

License

MIT License.