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

Method hasNodePart

plugin/module-mapper.ts:107–118  ·  view source on GitHub ↗
(bundleId: string, moduleId: string)

Source from the content-addressed store, hash-verified

105 }
106
107 hasNodePart(bundleId: string, moduleId: string): boolean {
108 if (!(moduleId in this.nodeMetas)) {
109 return false;
110 }
111 if (!(bundleId in this.nodeMetas[moduleId].meta.moduleParts)) {
112 return false;
113 }
114 if (!(this.nodeMetas[moduleId].meta.moduleParts[bundleId] in this.nodeParts)) {
115 return false;
116 }
117 return true;
118 }
119
120 getNodeParts(): ModuleMapper["nodeParts"] {
121 return this.nodeParts;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected