parse(json: string,outDir: string): SourceMapDecoder
Parses a source-map V3 JSON string into a SourceMapDecoder ready for position lookup.
import * as SourceMap from './source-map.ts'; const decoder = SourceMap.parse('{"sources":["../test/login-test.ts"],"mappings":"AAAA"}', '/proj/tmp'); decoder.sources; // ['../test/login-test.ts'] decoder.segmentsByLine[0].length; // 1