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

Method resolveImportPath

src/loader.ts:326–328  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

324 }
325
326 resolveImportPath(path: string): string {
327 return resolveImportPath(this.root, path, (p) => this.getSourceFileHash(p));
328 }
329
330 resolveFilePath(path: string): string {
331 return `/${join("_file", path)}?sha=${this.getSourceFileHash(path)}`;

Callers 2

resolveImportFunction · 0.80
buildFunction · 0.80

Calls 2

getSourceFileHashMethod · 0.95
resolveImportPathFunction · 0.85

Tested by

no test coverage detected