Compare commits

...

2 Commits

2 changed files with 2 additions and 2 deletions

2
dist/index.js vendored
View File

@ -15,8 +15,8 @@ const node_gyp_build_optional_packages_1 = __importDefault(require("node-gyp-bui
const fs_1 = __importDefault(require("fs"));
const path_1 = __importDefault(require("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");

View File

@ -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");