MCPcopy
hub / github.com/TypeStrong/ts-node / updateSourceMap

Function updateSourceMap

src/index.ts:1689–1695  ·  view source on GitHub ↗

* Update the source map contents for improved output.

(sourceMapText: string, fileName: string)

Source from the content-addressed store, hash-verified

1687 * Update the source map contents for improved output.
1688 */
1689function updateSourceMap(sourceMapText: string, fileName: string) {
1690 const sourceMap = JSON.parse(sourceMapText);
1691 sourceMap.file = fileName;
1692 sourceMap.sources = [fileName];
1693 delete sourceMap.sourceRoot;
1694 return JSON.stringify(sourceMap);
1695}
1696
1697/**
1698 * Filter diagnostics.

Callers 1

updateOutputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…