persona-community-5/.pnpm-store/v3/files/aa/766749b8978bbac0145b75d4af3c256350609e0f9ba4a78f66aff7727fc8652d17ddb376e0c5fe58bf61fdbf4d51489fde587c1e6c5a49352d43304e6ec2dc
rdev-worker a1d0d1bf1c
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
build: /implement-feature community-ui --requirements 'Build the React commu...
2026-02-24 08:22:30 +00:00

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;