Skip to content

Commit

Permalink
Merge pull request #19 from wizicer/patch-1
Browse files Browse the repository at this point in the history
fix Error: Cannot find module on Windows OS
  • Loading branch information
mitschabaude committed May 10, 2023
2 parents 3b748c5 + 15b6d4e commit b39cdd7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/node/node-backend.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { isMainThread, parentPort, workerData, Worker } from 'worker_threads';
import os from 'os';
import wasm_ from '../../../_node_bindings/plonk_wasm.cjs';
let filename = import.meta.url?.slice(7) ?? __filename;
import { fileURLToPath } from 'url';
let url = import.meta.url;
let filename = url !== undefined ? fileURLToPath(url) : __filename;

/**
* @type {import("../../node_bindings/plonk_wasm")}
Expand Down

0 comments on commit b39cdd7

Please sign in to comment.