fix(vite): improve commonjs handling (#3336)
Fixes https://github.com/denoland/fresh/issues/3323
This commit is contained in:
@@ -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>;
|
||||
}
|
||||
Reference in New Issue
Block a user