Fix TypeScript CJS Default Exports Declarations

JSON →
library 1.0.1 ·javascript
verified May 27, 2026

This utility addresses a common issue in TypeScript declaration generation, specifically when dealing with default exports within CommonJS modules. It provides a programmatic API and a Rollup plugin to correctly transform `d.mts` files into CommonJS-compatible `d.ts` and `d.cts` files, ensuring interoperability. The current stable version is 1.0.1, with recent releases indicating an active maintenance cadence primarily focused on bug fixes and compatibility. Key differentiators include its direct integration via a Rollup plugin, making it suitable for build tools like `unbuild` (which leverages it internally since v3.5.0), and its specific focus on the nuanced problem of default exports in CJS TypeScript declarations where other bundlers or compilers might produce incorrect outputs. It provides a targeted solution for a specific TypeScript build problem, rather than being a general-purpose bundler.

total hits 16
actors 8 distinct systems
last hit 19h ago Amazonbot
MetaBot
4
GPTBot
2
Script
1
Amazonbot
1
Search engines
3

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇫🇷 France · 🇺🇦 Ukraine · 🇩🇪 Germany