fix(win32): fix plugin resolution with createRequire fallback (#14898)

This commit is contained in:
Luke Parker
2026-02-24 22:20:57 +10:00
committed by GitHub
parent a292eddeb5
commit 1af3e9e557
2 changed files with 13 additions and 4 deletions

View File

@@ -689,7 +689,7 @@ test("resolves scoped npm plugins in config", async () => {
const pluginEntries = config.plugin ?? []
const baseUrl = pathToFileURL(path.join(tmp.path, "opencode.json")).href
const expected = import.meta.resolve("@scope/plugin", baseUrl)
const expected = pathToFileURL(path.join(tmp.path, "node_modules", "@scope", "plugin", "index.js")).href
expect(pluginEntries.includes(expected)).toBe(true)