TypeScript · Emit

inlineSources

Include source code in the sourcemaps inside the emitted JavaScript.

Syntax
"inlineSources": true

Example

Example
{
  "compilerOptions": {
    "inlineSources": true
  }
}

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