* Update the source map contents for improved output.
(sourceMapText: string, fileName: string)
| 1687 | * Update the source map contents for improved output. |
| 1688 | */ |
| 1689 | function 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. |
no outgoing calls
no test coverage detected
searching dependent graphs…