( map: ExistingDecodedSourceMap | null, sourcemapChain?: DecodedSourceMapOrMissing[] )
| 35 | } |
| 36 | |
| 37 | export function resetSourcemapCache( |
| 38 | map: ExistingDecodedSourceMap | null, |
| 39 | sourcemapChain?: DecodedSourceMapOrMissing[] |
| 40 | ) { |
| 41 | if (map) { |
| 42 | const cache = sourceMapCache.get(map); |
| 43 | if (cache) { |
| 44 | resetCacheToEncoded(cache); |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | if (!sourcemapChain) { |
| 49 | return; |
| 50 | } |
| 51 | |
| 52 | for (const map of sourcemapChain) { |
| 53 | if (map.missing) continue; |
| 54 | |
| 55 | resetSourcemapCache(map); |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | export function decodedSourcemap(map: null | undefined): null; |
| 60 | export function decodedSourcemap(map: Exclude<Input, null | undefined>): ExistingDecodedSourceMap; |
no test coverage detected
searching dependent graphs…