Lines Matching refs:requestPath
364 function readPackage(requestPath) { argument
365 const jsonPath = path.resolve(requestPath, 'package.json');
423 function tryPackage(requestPath, exts, isMain, originalPath) { argument
424 const pkg = _readPackage(requestPath)?.main;
427 return tryExtensions(path.resolve(requestPath, 'index'), exts, isMain);
430 const filename = path.resolve(requestPath, pkg);
435 actual = tryExtensions(path.resolve(requestPath, 'index'), exts, isMain);
443 err.path = path.resolve(requestPath, 'package.json');
444 err.requestPath = originalPath;
448 const jsonPath = path.resolve(requestPath, 'package.json');
469 function tryFile(requestPath, isMain) { argument
470 const rc = _stat(requestPath);
473 return path.resolve(requestPath);
475 return toRealPath(requestPath);
478 function toRealPath(requestPath) { argument
479 return fs.realpathSync(requestPath, {