In my project, the Typescript compiler compiles my classes like so:
class Example
{
...
}
into:
var Example = /** @class */ (function () {
function Example() {
}
return Example;
}());
How can I configure Typescript (currently using VS2015) so that it doesn't emit that @class comment?
There is no way to remove just the /** @class */ comment. I checked the source code and it does not seem to be controlled by any special compiler flag. The only way to remove this comment is to remove all comments, using the --removeComments compiler option.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With