(position: OriginalMapping)
| 102 | } |
| 103 | |
| 104 | function getRunnerSourceMap(position: OriginalMapping): CachedMapEntry | null { |
| 105 | for (const moduleGraph of evaluatedModulesCache) { |
| 106 | const sourceMap = moduleGraph.getModuleSourceMapById(position.source!) |
| 107 | if (sourceMap) { |
| 108 | return { |
| 109 | url: position.source, |
| 110 | map: sourceMap, |
| 111 | vite: true, |
| 112 | } |
| 113 | } |
| 114 | } |
| 115 | return null |
| 116 | } |
| 117 | |
| 118 | function retrieveFile(path: string): string | null | undefined | false { |
| 119 | if (path in fileContentsCache) return fileContentsCache[path] |
no test coverage detected