MCPcopy Index your code
hub / github.com/nodejs/node / loadModuleFromFileNoPackageId

Function loadModuleFromFileNoPackageId

test/fixtures/snapshot/typescript.js:43510–43512  ·  view source on GitHub ↗
(extensions, candidate, onlyRecordFailures, state)

Source from the content-addressed store, hash-verified

43508 return nextSeparatorIndex === -1 ? prevSeparatorIndex : nextSeparatorIndex;
43509 }
43510 function loadModuleFromFileNoPackageId(extensions, candidate, onlyRecordFailures, state) {
43511 return noPackageId(loadModuleFromFile(extensions, candidate, onlyRecordFailures, state));
43512 }
43513 /**
43514 * @param {boolean} onlyRecordFailures - if true then function won't try to actually load files but instead record all attempts as failures. This flag is necessary
43515 * in cases when we know upfront that all load attempts will fail (because containing folder does not exists) however we still need to record all failed lookup locations.

Callers 1

tryResolveFunction · 0.85

Calls 2

noPackageIdFunction · 0.85
loadModuleFromFileFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…