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

Function resolveNodeImport

src/node.ts:23–25  ·  view source on GitHub ↗
(root: string, spec: string)

Source from the content-addressed store, hash-verified

21import {faint} from "./tty.js";
22
23export async function resolveNodeImport(root: string, spec: string): Promise<string> {
24 return resolveNodeImportInternal(op.join(root, ".observablehq", "cache", "_node"), root, spec);
25}
26
27const bundlePromises = new Map<string, Promise<string>>();
28

Callers 5

node-test.tsFile · 0.85
resolveResolversFunction · 0.85
getModuleStaticImportsFunction · 0.85
getModuleResolverFunction · 0.85
getLocalModuleHashFunction · 0.85

Calls 1

Tested by

no test coverage detected