Lines Matching refs:requestPath
258 function readPackage(requestPath) { argument
259 const jsonPath = path.resolve(requestPath, 'package.json');
306 function tryPackage(requestPath, exts, isMain, originalPath) { argument
307 const pkg = readPackage(requestPath)?.main;
310 return tryExtensions(path.resolve(requestPath, 'index'), exts, isMain);
313 const filename = path.resolve(requestPath, pkg);
318 actual = tryExtensions(path.resolve(requestPath, 'index'), exts, isMain);
326 err.path = path.resolve(requestPath, 'package.json');
327 err.requestPath = originalPath;
331 const jsonPath = path.resolve(requestPath, 'package.json');
352 function tryFile(requestPath, isMain) { argument
353 const rc = stat(requestPath);
356 return path.resolve(requestPath);
358 return toRealPath(requestPath);
361 function toRealPath(requestPath) { argument
362 return fs.realpathSync(requestPath, {