Compare commits
No commits in common. "883f811f9154c0a7efcf599aebc5f05a11c88217" and "194368400631fcf482cd70169480ba1bcc0c6e95" have entirely different histories.
883f811f91
...
1943684006
|
@ -13,18 +13,13 @@ const loaderFunction = `function loadNativeModuleTemp(module, data) {
|
|||
const tempDir = require("os").tmpdir();
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
const loadPath = path.join(tempDir, module);
|
||||
const outputPath = path.join(loadPath, "build", "Release");
|
||||
const outputPath = path.join(tempDir, module, "build", "Release");
|
||||
const modulePath = path.join(outputPath, module + ".node");
|
||||
|
||||
fs.mkdirSync(outputPath, { recursive: true });
|
||||
fs.writeFileSync(modulePath, Buffer.from(data, "base64"));
|
||||
|
||||
if (process.pkg) {
|
||||
process.pkg = undefined;
|
||||
}
|
||||
|
||||
return loadPath;
|
||||
return modulePath;
|
||||
}`;
|
||||
function bundleNativeModulesPlugin() {
|
||||
const edits = [];
|
||||
|
|
|
@ -10,18 +10,13 @@ const loaderFunction = `function loadNativeModuleTemp(module, data) {
|
|||
const tempDir = require("os").tmpdir();
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
const loadPath = path.join(tempDir, module);
|
||||
const outputPath = path.join(loadPath, "build", "Release");
|
||||
const outputPath = path.join(tempDir, module, "build", "Release");
|
||||
const modulePath = path.join(outputPath, module + ".node");
|
||||
|
||||
fs.mkdirSync(outputPath, { recursive: true });
|
||||
fs.writeFileSync(modulePath, Buffer.from(data, "base64"));
|
||||
|
||||
if (process.pkg) {
|
||||
process.pkg = undefined;
|
||||
}
|
||||
|
||||
return loadPath;
|
||||
return modulePath;
|
||||
}`;
|
||||
|
||||
type Edit = [number, number];
|
||||
|
|
Loading…
Reference in New Issue