You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just to set expectations, removeComments: false is not a guarantee that 100% of comments will be retained -- those attached to interfaces, for example, will still not be present in the JS.
@RyanCavanaugh for interfaces and other type artifacts that are lost while transpiling, it's fine. And I would say, it's even expected those to be lost.
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: