Rollup plugin that bundles .d.ts files accurately using @microsoft/api-extractor. Current stable version 1.0.4 (released 2025), maintained on GitHub with automated CI and Renovate for dependency updates. Unlike alternatives like rollup-plugin-dts or dts-bundle-generator, this plugin avoids mangling type names and preserves re-exports by leveraging Microsoft's official api-extractor via a simple Rollup interface. Requires Rollup ^4.0.0 and TypeScript ^6.0.0 as peer dependencies.
npm install rollup-dts-bundlerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Minimal Rollup config to bundle .d.ts from src/index.ts to dist/index.d.ts using the dts plugin.
Upgrade Rollup to v4 and TypeScript to v6.
Do not use other TypeScript plugins in same bundle; this plugin solely handles .d.ts emission.
If you need to bundle external types, use bundledPackages option.
npm install --save-dev @microsoft/api-extractor
Use import syntax or dynamic import()