egoist / tsup

The simplest and fastest way to bundle your TypeScript libraries.
https://tsup.egoist.dev
MIT License
9.29k stars 223 forks source link

Question: How can I preserve JSDoc comments with tsup? #1109

Open touhidurrr opened 7 months ago

touhidurrr commented 7 months ago

tsup is removing import JSDoc comments from .d.ts. How can I fix this?

Upvote & Fund

Fund with Polar

arabold commented 2 weeks ago

This might be painfully obvious but making sure you set removeComments to false in your tsconfig.json should work.

touhidurrr commented 2 weeks ago

This might be painfully obvious but making sure you set removeComments to false in your tsconfig.json should work.

Yet 7 months after someone finally answered it, sigh. I opted to use tsc to generate stuff in the meantime. I will give it a try and see what happens.