(argvPath: string | undefined, moduleUrl: string)
| 11 | } |
| 12 | |
| 13 | export function isMainModuleEntry(argvPath: string | undefined, moduleUrl: string): boolean { |
| 14 | if (!argvPath) { |
| 15 | return false; |
| 16 | } |
| 17 | const modulePath = resolveCanonicalPath(fileURLToPath(moduleUrl)); |
| 18 | const entryPath = resolveCanonicalPath(resolve(argvPath)); |
| 19 | return modulePath === entryPath; |
| 20 | } |
no test coverage detected