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

Function resolveFile

src/build.ts:307–310  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

305 path,
306 params: module.params,
307 resolveFile(name) {
308 const resolution = loaders.resolveFilePath(resolvePath(path, name));
309 return aliases.get(resolution) ?? resolution;
310 },
311 resolveFileInfo(name) {
312 return loaders.getOutputInfo(resolvePath(path, name));
313 },

Callers 5

resolvePathFunction · 0.70
getFilesFunction · 0.70
accumulateSizeFunction · 0.70
transpileModuleFunction · 0.50
CallExpressionFunction · 0.50

Calls 4

relativePathFunction · 0.85
resolveFilePathMethod · 0.80
resolveFileMethod · 0.80
resolvePathFunction · 0.70

Tested by

no test coverage detected