(spec: string)
| 54 | const INDEX_FILES = ["index.ts", "index.tsx", "index.js", "index.mjs", "index.cjs"] |
| 55 | |
| 56 | export function pluginSource(spec: string): PluginSource { |
| 57 | if (isPathPluginSpec(spec)) return "file" |
| 58 | return "npm" |
| 59 | } |
| 60 | |
| 61 | function resolveExportPath(raw: string, dir: string) { |
| 62 | if (raw.startsWith("file://")) return fileURLToPath(raw) |
no test coverage detected