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

Function getModule

plugin/report.ts:46–53  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

44): Promise<CollectedReport> => {
45 const report: CollectedReport = { chunks: [], modules: new Map(), links: [] };
46 const getModule = (id: string): CollectedModule => {
47 let module = report.modules.get(id);
48 if (module == null) {
49 module = { id, bundles: new Set(), isGraphNode: false };
50 report.modules.set(id, module);
51 }
52 return module;
53 };
54 for (const [id, chunk] of Object.entries(outputBundle)) {
55 if (chunk.type !== "chunk") continue;
56 const outputModuleIds = Object.keys(chunk.modules);

Callers 2

collectReportFunction · 0.85
addLinkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected