SourceMap
Index
Constructors
Methods
Constructors
constructor
new SourceMap(sourcemaps: string | SourceMapObject): SourceMap
Methods
add
add Source Content
addSourceContent(
id: number,
fileName: string | null,
content: string | null,
): void
add source
Parameters
id: numbersource id
fileName: string | nullsource file
content: string | nullsource content
Returns void
compute Positions
computePositions(): void
compute original positions
Returns void
find
find(
line: number,
column: number,
): [string | null, number, number, string | null][] | null
retrieve original sources, lines and columns
Parameters
line: numbergenerated line
column: numbergenerated column
Returns [string | null, number, number, string | null][] | null
to JSON
toJSON(): SourceMapObject
Convert to JSON object
Returns SourceMapObject
to Url
toUrl(): string
Convert to URL encoded string
Generate and parse source map