*Put loady back inside loadNativeModuleTemp
This commit is contained in:
parent
1d607c6cc2
commit
b001003cfd
|
@ -12,8 +12,8 @@ import type { Plugin } from "vite";
|
||||||
import path from "path";
|
import path from "path";
|
||||||
|
|
||||||
const loaderFunction = `
|
const loaderFunction = `
|
||||||
const loady = require("loady");
|
|
||||||
function loadNativeModuleTemp (module, data) {
|
function loadNativeModuleTemp (module, data) {
|
||||||
|
const loady = require("loady");
|
||||||
const tempDir = require("os").tmpdir();
|
const tempDir = require("os").tmpdir();
|
||||||
const fs = require("fs");
|
const fs = require("fs");
|
||||||
const path = require("path");
|
const path = require("path");
|
||||||
|
|
Loading…
Reference in New Issue