SourceMap

external class SourceMap(source)

Since

v13.7.0, v12.17.0

Constructors

Link copied to clipboard
constructor(payload: SourceMapPayload)

Properties

Link copied to clipboard

Getter for the payload used to construct the SourceMap instance.

Functions

Link copied to clipboard
fun findEntry(lineOffset: Number, columnOffset: Number): SourceMapping

Given a line offset and column offset in the generated source file, returns an object representing the SourceMap range in the original file if found, or an empty object if not.

Link copied to clipboard
fun findOrigin(lineNumber: Number, columnNumber: Number): Any

Given a 1-indexed lineNumber and columnNumber from a call site in the generated source, find the corresponding call site location in the original source.