(path: string, paths: string[])
| 595 | } |
| 596 | |
| 597 | function tryResolve(path: string, paths: string[]) { |
| 598 | try { |
| 599 | const _require = getRequire() |
| 600 | return _require.resolve(path, { paths }) |
| 601 | } |
| 602 | catch { |
| 603 | return undefined |
| 604 | } |
| 605 | } |
| 606 | |
| 607 | let _require: NodeRequire |
| 608 | function getRequire() { |
no test coverage detected