TypeScript · Emit

emitBOM

Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files.

Syntax
"emitBOM": true

Example

Example
{
  "compilerOptions": {
    "emitBOM": true
  }
}

More in this group

declaration declarationDir declarationMap downlevelIteration emitDeclarationOnly importHelpers inlineSourceMap inlineSources

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course