Closed as duplicate of#14619
Description
π Search Terms
"removeComments"
β Viability Checklist
- This wouldn't be a breaking change in existing TypeScript/JavaScript code
- This wouldn't change the runtime behavior of existing JavaScript code
- This could be implemented without emitting different JS based on the types of the expressions
- This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
- This isn't a request to add a new utility type: https://github.com/microsoft/TypeScript/wiki/No-New-Utility-Types
- This feature would agree with the rest of our Design Goals: https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals
β Suggestion
Add a new option removeDeclarationComments: boolean
π Motivating Example
I want to strip comments for JavaScript outputs but not declarations
π» Use Cases
- What do you want to use this for?
Comments for declarations are useful, for example @deprecated
jsdoc
- What shortcomings exist with current approaches?
It doesn't make much sense to have both of them in JavaScript outputs and declarations
- What workarounds are you using in the meantime?
I have to disable removeComments
for now
Metadata
Metadata
Assignees
Labels
No labels