fix(vite): unable to load transpiled commonjs with node builtins (#3541)

This commit is contained in:
Marvin Hagemeister
2025-10-08 12:47:04 +02:00
committed by GitHub
parent 4b069ee0d0
commit efef51714b
4 changed files with 44 additions and 14 deletions
@@ -0,0 +1,8 @@
"use strict";
// deno-lint-ignore no-var
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const assert_1 = __importDefault(require("assert"));
(0, assert_1.default)(true);
@@ -0,0 +1,7 @@
import * as maxmind from "../../fixtures/maxmind.cjs";
export default function Page() {
// deno-lint-ignore no-console
console.log(maxmind);
return <h1>maxmind</h1>;
}