--removeComments
in JS only
#13318
Labels
Declined
The issue was declined as something which matches the TypeScript vision
Suggestion
An idea for TypeScript
tsc: 2.2.0+
I try to preserve comments in typings files but remove comments in the transpiled JS file. Couldn't find a combination to do it.
One way is introducing a flag for it, but it would be overkill.
Another way is to emit typings files when
--declaration=true
and--noEmit=true
, the draw back is I have to runtsc
twice with different config to generate the comment removed JS files and comment retained typings files.The text was updated successfully, but these errors were encountered: