(raw: string, dir: string)
| 59 | } |
| 60 | |
| 61 | function resolveExportPath(raw: string, dir: string) { |
| 62 | if (raw.startsWith("file://")) return fileURLToPath(raw) |
| 63 | if (path.isAbsolute(raw)) return raw |
| 64 | return path.resolve(dir, raw) |
| 65 | } |
| 66 | |
| 67 | function isAbsolutePath(raw: string) { |
| 68 | return path.isAbsolute(raw) || /^[A-Za-z]:[\\/]/.test(raw) |
no outgoing calls
no test coverage detected