Bun build dts output #3281
-
Does bun build have a dts output option? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Do you mean to output the type definitions defined in your TypeScript source code? If so, I can't find any options in the |
Beta Was this translation helpful? Give feedback.
-
Yup that , most build tools don't do it though, it's the slowest part of builds and is usually done with tsc , am guessing like other bundlers it'll have to be solved with a plugin that'll run after build and run tsc while pointing it to the right output directories, looked into the bun plugin system but didn't get far min try again later |
Beta Was this translation helpful? Give feedback.
-
You might want to give https://github.com/wobsoriano/bun-plugin-dts a try |
Beta Was this translation helpful? Give feedback.
-
You might use Bunup which simplifies the bun bundler to be used in your project. And also first class support for DTS. Powered by the Bun bundler with Oxc (isolatedDeclaration), you just need the |
Beta Was this translation helpful? Give feedback.
You might want to give https://github.com/wobsoriano/bun-plugin-dts a try