( id: string, outputChunk: BundlerOutputChunk, dir: string, )
| 80 | }; |
| 81 | |
| 82 | export const getSourcemapModules = ( |
| 83 | id: string, |
| 84 | outputChunk: BundlerOutputChunk, |
| 85 | dir: string, |
| 86 | ): Promise<Record<string, SourceMapModuleRenderInfo>> => { |
| 87 | if (outputChunk.map == null) { |
| 88 | return Promise.resolve({}); |
| 89 | } |
| 90 | return SourceMapConsumer.with(outputChunk.map as RawSourceMap, null, (map) => { |
| 91 | return getBytesPerFileUsingSourceMap(id, outputChunk.code, map, dir); |
| 92 | }); |
| 93 | }; |
no test coverage detected