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

Method getModuleUid

plugin/module-mapper.ts:53–67  ·  view source on GitHub ↗
(moduleId: string)

Source from the content-addressed store, hash-verified

51 }
52
53 getModuleUid(moduleId: string): ModuleUID {
54 if (!(moduleId in this.nodeMetas)) {
55 this.nodeMetas[moduleId] = {
56 uid: this.uniqueId(),
57 meta: {
58 id: this.trimProjectRootId(moduleId),
59 moduleParts: {},
60 imported: new Set(),
61 importedBy: new Set(),
62 },
63 };
64 }
65
66 return this.nodeMetas[moduleId].uid;
67 }
68
69 getBundleModuleUid(bundleId: string, moduleId: string): ModuleUID {
70 if (!(moduleId in this.nodeMetas)) {

Callers 4

setNodePartMethod · 0.95
setNodeMetaMethod · 0.95
addImportedByLinkMethod · 0.95
addImportedLinkMethod · 0.95

Calls 2

uniqueIdMethod · 0.95
trimProjectRootIdMethod · 0.95

Tested by

no test coverage detected