(path)
| 90 | } |
| 91 | |
| 92 | function resolveFileCandidate(path) { |
| 93 | if (existsSync(path)) return path; |
| 94 | for (const extension of jsExtensions) { |
| 95 | const candidate = `${path}${extension}`; |
| 96 | if (existsSync(candidate)) return candidate; |
| 97 | } |
| 98 | for (const entryName of runtimeEntryNames) { |
| 99 | const candidate = join(path, entryName); |
| 100 | if (existsSync(candidate)) return candidate; |
| 101 | } |
| 102 | return null; |
| 103 | } |
| 104 | |
| 105 | function resolvePackageEntry(packageRoot, packageJson) { |
| 106 | const rawMain = |
no outgoing calls
no test coverage detected