Skip to content

--removeComments in JS only #13318

Closed
Closed
@unional

Description

@unional

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 run tsc twice with different config to generate the comment removed JS files and comment retained typings files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DeclinedThe issue was declined as something which matches the TypeScript visionSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions