TypeScript removes comments even when removeComments: false
#47158
Labels
Milestone
removeComments: false
#47158
Bug Report
TypeScript removes comments when transpiling even when
removeComments: false
.π Search Terms
removeComments; comments;
π Version & Regression Information
Seems to happen on all versions (at least from 3.x to latest).
β― Playground Link
Playground Link
π» Code
Specifying a type on
b
causes the problem to manifest,π Actual behavior
Produces the following output when
removeComments
is set tofalse
on tsconfig.json:π Expected behavior
Should keep the comments on both lines:
The text was updated successfully, but these errors were encountered: