( id: string, outputChunk: BundlerOutputChunk, dir: string, )
| 77 | }; |
| 78 | |
| 79 | export const getSourcemapModules = async ( |
| 80 | id: string, |
| 81 | outputChunk: BundlerOutputChunk, |
| 82 | dir: string, |
| 83 | ): Promise<Record<string, SourceMapModuleRenderInfo>> => { |
| 84 | if (outputChunk.map == null) { |
| 85 | return {}; |
| 86 | } |
| 87 | const map = new TraceMap(outputChunk.map as EncodedSourceMap); |
| 88 | return getBytesPerFileUsingSourceMap(id, outputChunk.code, map, dir); |
| 89 | }; |
no test coverage detected