fix: vite resolution + cjs fixes (#3208)

This commit is contained in:
Marvin Hagemeister
2025-08-08 12:27:21 +02:00
committed by GitHub
parent c97e8226af
commit 9a764ae116
5 changed files with 145 additions and 8 deletions
+6
View File
@@ -24,6 +24,12 @@ export function deno(): Plugin {
return true;
},
async resolveId(id, importer, options) {
// Workaround until upstream PR is merged and released,
// see: https://github.com/vitejs/vite/pull/20558
if (id.startsWith("deno-npm:")) {
id = id.slice("deno-".length);
}
importer = isDenoSpecifier(importer)
? parseDenoSpecifier(importer).specifier
: importer;