Skip to content

Additional removeDeclarationComments option for removing comments for JavaScript outputs but not declarations #61549

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
6 tasks done
JounQin opened this issue Apr 7, 2025 · 1 comment

Comments

@JounQin
Copy link

JounQin commented Apr 7, 2025

πŸ” Search Terms

"removeComments"

βœ… Viability Checklist

⭐ Suggestion

Add a new option removeDeclarationComments: boolean

πŸ“ƒ Motivating Example

I want to strip comments for JavaScript outputs but not declarations

πŸ’» Use Cases

  1. What do you want to use this for?

Comments for declarations are useful, for example @deprecated jsdoc

  1. What shortcomings exist with current approaches?

It doesn't make much sense to have both of them in JavaScript outputs and declarations

  1. What workarounds are you using in the meantime?

I have to disable removeComments for now

@JounQin JounQin changed the title Additional removeComments option for removing comments for JavaScript outputs but not declarations Additional removeDeclarationComments option for removing comments for JavaScript outputs but not declarations Apr 7, 2025
@MartinJohns
Copy link
Contributor

Duplicate of #14619.

@JounQin JounQin closed this as completed Apr 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants