MCPcopy Create free account
hub / github.com/vercel/vercel / resolve

Function resolve

packages/node/src/build.ts:228–236  ·  view source on GitHub ↗
(id, parent, job, cjsResolve)

Source from the content-addressed store, hash-verified

226 moduleSyncCatchall: true,
227 conditions,
228 resolve(id, parent, job, cjsResolve) {
229 const normalizedWasmImports = id.replace(/\.wasm\?module$/i, '.wasm');
230 return nftResolveDependency(
231 normalizedWasmImports,
232 parent,
233 job,
234 cjsResolve
235 );
236 },
237 ignore: config.excludeFiles,
238 async readFile(fsPath) {
239 const relPath = relative(baseDir, fsPath);

Callers 15

resolveEntrypointFunction · 0.70
shutdownFunction · 0.70
compileFunction · 0.70
runFunction · 0.50
runForwardedFunction · 0.50
finishFunction · 0.50
readdirFunction · 0.50
fixtureFunction · 0.50
loaderFunction · 0.50
onAllReadyFunction · 0.50
onShellReadyFunction · 0.50
findEntryFunction · 0.50

Calls 1

replaceMethod · 0.80

Tested by 5

fixtureFunction · 0.40
setupLocalApiServerFunction · 0.40
recordProjectFunction · 0.40
runShimScenarioFunction · 0.40
testForkDevServerFunction · 0.40