MCPcopy Create free account
hub / github.com/observablehq/framework / addImport

Function addImport

src/javascript/imports.ts:75–78  ·  view source on GitHub ↗
(ref: ImportReference)

Source from the content-addressed store, hash-verified

73 });
74
75 function addImport(ref: ImportReference) {
76 const key = `${ref.type}:${ref.method}:${ref.name}`;
77 if (!keys.has(key)) keys.add(key), imports.push(ref);
78 }
79
80 function findImport(node: ImportNode | ExportNode) {
81 const source = node.source;

Callers 2

findImportFunction · 0.85
findImportMetaResolveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected