* Named "probably" as a reminder that this is a guess. * node does not explicitly tell us if we're resolving the entrypoint or not.
(specifier: string, parentURL: string)
| 144 | * node does not explicitly tell us if we're resolving the entrypoint or not. |
| 145 | */ |
| 146 | function isProbablyEntrypoint(specifier: string, parentURL: string) { |
| 147 | return parentURL === undefined && specifier.startsWith('file://'); |
| 148 | } |
| 149 | // Side-channel between `resolve()` and `load()` hooks |
| 150 | const rememberIsProbablyEntrypoint = new Set(); |
| 151 | const rememberResolvedViaCommonjsFallback = new Set(); |
no outgoing calls
no test coverage detected
searching dependent graphs…