You might use Bunup, which simplifies the Bun bundler for use in your project, like Tsup does for esbuild—Bunup for the Bun bundler. It also provides first-class support for DTS. Powered by the Bun bundler with Oxc (isolatedDeclarations
), you just need the --dts
flag for DTS generation.