Skip to content

Fine tuning compiler options for removing comments #3878

Description

@yuit

Talk with @CyrusNajmabadi . Currently we have following different types of comments:

  • Pinned comment
  • Triple-slash
  • Detached comment (i.e. copy right)
  • Normal comment (//, /* */, /** **/)

Currently, compilerOptions.removeComments will remove everything but pinned comment and detached comment. However, in some case, users may want to preserve triple-slash or may want to get ride of detached comment. Thus, it will be useful to have a compiler flag that allows users to specify what kind of comments to be remove and by default compilerOptions.removeComments should remove all but pinned comments

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions