vite-dts-plugin
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

vite-dts-plugin

Vite plugin to generate typescript definitions, with zero dependencies

Usage

vite.config.js

import {defineConfig} from "vite";
import {dtsPlugin} from "vite-dts-plugin";

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

Options

  • tsc: Name of the tsc binary, default tsc.
  • outDir: Output directory. Default: dist.
  • tsConfig: Custom tsconfig as a string. Default: undefined.
  • args: Additional arguments passed to tsc. Default: [].

Dependents (1)

Package Sidebar

Install

npm i vite-dts-plugin

Weekly Downloads

155

Version

1.1.1

License

BSD-2-Clause

Unpacked Size

4.82 kB

Total Files

6

Last publish

Collaborators

  • silverwind