how and why did I miss this
This commit is contained in:
parent
72c3d670d3
commit
ef09762fdc
1 changed files with 2 additions and 1 deletions
|
@ -4,10 +4,11 @@ import fs from "fs";
|
||||||
import path from "path";
|
import path from "path";
|
||||||
import { fileURLToPath } from "url";
|
import { fileURLToPath } from "url";
|
||||||
import { Worker } from "worker_threads";
|
import { Worker } from "worker_threads";
|
||||||
|
import { createRequire } from "module";
|
||||||
|
|
||||||
// only requiring this to work around an issue regarding worker threads
|
// only requiring this to work around an issue regarding worker threads
|
||||||
const nodeRequire = createRequire(import.meta.url);
|
const nodeRequire = createRequire(import.meta.url);
|
||||||
nodeRequire(`./build/${process.env.DEBUG && process.env.DEBUG === "true" ? "Debug" : "Release"}/image.node`);
|
nodeRequire(`../../build/${process.env.DEBUG && process.env.DEBUG === "true" ? "Debug" : "Release"}/image.node`);
|
||||||
|
|
||||||
import ImageConnection from "../imageConnection.js";
|
import ImageConnection from "../imageConnection.js";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue