*Using ESM import has bad side effects, switch to const since using "transformMixedEsModules" makes it compatible
This commit is contained in:
parent
2c3517d92a
commit
58143a9f2b
|
@ -12,7 +12,7 @@ import type { Plugin } from "vite";
|
|||
import path from "path";
|
||||
|
||||
const loaderFunction = `
|
||||
import loady from "loady";
|
||||
const loady = require("loady");
|
||||
function loadNativeModuleTemp (module, data) {
|
||||
const tempDir = require("os").tmpdir();
|
||||
const fs = require("fs");
|
||||
|
|
Loading…
Reference in New Issue