MCPcopy Create free account
hub / github.com/btd/rollup-plugin-visualizer / getSourcemapModules

Function getSourcemapModules

plugin/sourcemap.ts:79–89  ·  view source on GitHub ↗
(
  id: string,
  outputChunk: BundlerOutputChunk,
  dir: string,
)

Source from the content-addressed store, hash-verified

77};
78
79export 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};

Callers 2

collectReportFunction · 0.85
sourcemap.test.tsFile · 0.85

Calls 1

Tested by

no test coverage detected