( id: string, outputChunk: BundlerOutputChunk, dir: string, )
| 45 | }; |
| 46 | |
| 47 | export const getSourcemapModules = ( |
| 48 | id: string, |
| 49 | outputChunk: BundlerOutputChunk, |
| 50 | dir: string, |
| 51 | ): Promise<Record<string, SourceMapModuleRenderInfo>> => { |
| 52 | if (outputChunk.map == null) { |
| 53 | return Promise.resolve({}); |
| 54 | } |
| 55 | return SourceMapConsumer.with(outputChunk.map as RawSourceMap, null, (map) => { |
| 56 | return getBytesPerFileUsingSourceMap(id, outputChunk.code, map, dir); |
| 57 | }); |
| 58 | }; |
no test coverage detected