UNPKG

484 BTypeScriptView Raw
1import { SourceMapOptions } from "./index";
2export interface RawSourceMap {
3 version: number;
4 file: string;
5 sources: Array<string>;
6 sourceRoot?: string;
7 sourcesContent?: Array<string>;
8 mappings: string;
9 names: Array<string>;
10}
11/**
12 * Generate a simple source map indicating that each line maps directly to the original line.
13 */
14export default function computeSourceMap(code: string, filePath: string, { compiledFilename }: SourceMapOptions): RawSourceMap;