*Since ESM imports will get rewritten import loady as ESM so it can be processed when importing ESM files

This commit is contained in:
Derrick Hammer 2023-01-01 12:57:21 -05:00
parent 301a6e623b
commit c3bfb3e6c5
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

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