From b001003cfd9b17e7bc971fd9e20a9260b61b9943 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 1 Jan 2023 14:33:23 -0500 Subject: [PATCH] *Put loady back inside loadNativeModuleTemp --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index bdbf0df..82d7a26 100644 --- a/src/index.ts +++ b/src/index.ts @@ -12,8 +12,8 @@ import type { Plugin } from "vite"; import path from "path"; const loaderFunction = ` -const loady = require("loady"); function loadNativeModuleTemp (module, data) { + const loady = require("loady"); const tempDir = require("os").tmpdir(); const fs = require("fs"); const path = require("path");