*Since ESM imports will get rewritten import loady as ESM so it can be processed when importing ESM files
This commit is contained in:
parent
301a6e623b
commit
c3bfb3e6c5
|
@ -12,8 +12,8 @@ import type { Plugin } from "vite";
|
|||
import path from "path";
|
||||
|
||||
const loaderFunction = `
|
||||
import loady from "loady";
|
||||
function loadNativeModuleTemp (module, data) {
|
||||
const loady = require("loady");
|
||||
const tempDir = require("os").tmpdir();
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
|
|
Loading…
Reference in New Issue