Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/opencode/src/plugin/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ export function pluginSource(spec: string): PluginSource {
}

function resolveExportPath(raw: string, dir: string) {
if (raw.startsWith("./") || raw.startsWith("../")) return path.resolve(dir, raw)
if (raw.startsWith("file://")) return fileURLToPath(raw)
return raw
if (path.isAbsolute(raw) || /^[A-Za-z]:[\\/]/.test(raw)) return raw
return path.resolve(dir, raw)
Comment thread
Hona marked this conversation as resolved.
}

function extractExportValue(value: unknown): string | undefined {
Expand Down
Loading