TypeScript · Emit

outFile

Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output.

Syntax
"outFile": "value"

Example

Example
{
  "compilerOptions": {
    "outFile": "value"
  }
}

More in this group

declaration declarationDir declarationMap downlevelIteration emitBOM emitDeclarationOnly importHelpers inlineSourceMap

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