Files
sanex b3fc8bc595 **New option**: sourceMapSourcesMode allows to control sources and sourcesContent fields of the source map
Fixed some cases with wrong source map file name generation when `sourceMapFileName` option is set
2021-07-19 22:19:48 +03:00

19 lines
579 B
TypeScript

declare module 'source-map-resolve' {
interface ExistingRawSourceMap {
mappings: string;
sources: string[];
sourcesContent: string[];
}
export interface ResolvedSources {
sourcesResolved: string[];
sourcesContent: (string | Error)[];
}
export function resolveSources(
map: ExistingRawSourceMap,
mapUrl: string,
read: (path: string, callback: (error: Error | null, data: Buffer | string) => void) => void,
callback: (error: Error | null, result: ResolvedSources) => void,
): void;
}