An esbuild plugin that automatically generates TypeScript declaration files (.d.ts/.d.tsx) during the build process. Current stable version is 0.9.26. It integrates seamlessly with esbuild (peer dependency >=0.27.4) and focuses on speed—leveraging the Rust-based `oxc` resolver for fast type emission. Unlike alternatives like `tsc` or `rollup-plugin-dts`, this plugin is purpose-built for esbuild users who want DTS generation as part of their build pipeline without sacrificing build performance. It is part of the Stacks ecosystem and actively maintained with regular releases.
No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
ESM-only package; CJS require will fail. Use dynamic import or import syntax.
Named export also available; preferred for tree-shaking.
PluginOptions is a TypeScript type; use `import type` to avoid bundling.
dtsPlugin is a factory function; must call it (with optional options) to get the plugin object.
Demonstrates basic usage: build TypeScript entry with esbuild and auto-generate DTS files in the output directory.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.