Skip to content

Comments are always removed when placed after a function definition #11046

@arthursw

Description

@arthursw

Comments are always removed when placed after a function definition:

class ExampleClass {

    constructor() {}

    exampleFunction() /*! removed precious comment */ {
        console.log("exampleFunction");
    }
}

Neither the "removeComments": false compile option, nor the exclamation mark comment /*! */have any effect.

Those comments are really important for me since they are used by Unreal.js.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: TransformsRelates to the public transform API

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions