unplugin-dts
v1.1.1
Published
<h1 align="center">unplugin-dts</h1>
Maintainers
Readme
Installation
pnpm i -D unplugin-dtsQuick Start
import dts from 'unplugin-dts/vite'
export default defineConfig({
plugins: [dts()],
})Supports Vite, Rollup, Rolldown, Webpack, Rspack and Esbuild.
For dual ESM/CommonJS declarations, explicitly configure two outDirs entries with
moduleFormat: 'esm' and moduleFormat: 'cjs'. With bundleTypes, each entry is bundled once
and the self-contained result is reused for both declaration formats. Configure conditional
exports.types entries separately in package.json.
Documentation
Example
A real project using this plugin: Vexip UI.
License
MIT License.
