fix(vite): unable to load transpiled commonjs with node builtins (#3541)
This commit is contained in:
@@ -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>;
|
||||
}
|
||||
Reference in New Issue
Block a user