fix(vite): improve commonjs handling (#3336)

Fixes https://github.com/denoland/fresh/issues/3323
This commit is contained in:
Marvin Hagemeister
2025-09-04 12:59:13 +02:00
committed by GitHub
parent b94aab2a1a
commit 4138b8ca66
17 changed files with 1096 additions and 218 deletions
@@ -0,0 +1,7 @@
import * as ioredis from "ioredis";
export default function Page() {
// deno-lint-ignore no-console
console.log(ioredis);
return <h1>ioredis</h1>;
}
@@ -0,0 +1,7 @@
import * as pg from "pg";
export default function Page() {
// deno-lint-ignore no-console
console.log(pg);
return <h1>pg</h1>;
}