Dev Build / cleanup (push) Canceled after 0s
Dev Build / typecheck (push) Canceled after 0s
Dev Build / build (linux-arm64, ubuntu-24.04-arm, linux-arm64) (push) Canceled after 0s
Dev Build / build (linux-x64, ubuntu-latest, linux-x64) (push) Canceled after 0s
Dev Build / build (win-x64, windows-latest, win32-x64) (push) Canceled after 0s
Dev Build / dispatch-dev-docker (push) Canceled after 0s
18 lines
733 B
Plaintext
18 lines
733 B
Plaintext
import type { SourceMapOptions } from "./index";
|
|
import type { Token } from "./parser/tokenizer";
|
|
import type { RootTransformerResult } from "./transformers/RootTransformer";
|
|
export interface RawSourceMap {
|
|
version: number;
|
|
file: string;
|
|
sources: Array<string>;
|
|
sourceRoot?: string;
|
|
sourcesContent?: Array<string>;
|
|
mappings: string;
|
|
names: Array<string>;
|
|
}
|
|
/**
|
|
* Generate a source map indicating that each line maps directly to the original line,
|
|
* with the tokens in their new positions.
|
|
*/
|
|
export default function computeSourceMap({ code: generatedCode, mappings: rawMappings }: RootTransformerResult, filePath: string, options: SourceMapOptions, source: string, tokens: Array<Token>): RawSourceMap;
|