TSConfig
removeComments
Strips all comments from TypeScript files when converting into JavaScript. Defaults to false
.
For example, this is a TypeScript file which has a JSDoc comment:
ts
/** The translation of 'Hello world' into Portuguese */export const helloWorldPTBR = "Olá Mundo";
When removeComments
is set to true
:
tsTry
export const helloWorldPTBR = "Olá Mundo";
Without setting removeComments
or having it as false
:
tsTry
/** The translation of 'Hello world' into Portuguese */export const helloWorldPTBR = "Olá Mundo";
This means that your comments will show up in the JavaScript code.