fix(bindings): fix root detection on windows
This commit is contained in:
parent
122493b717
commit
24c8feba3e
1 changed files with 3 additions and 1 deletions
|
|
@ -1,4 +1,6 @@
|
|||
const root = new URL("../..", import.meta.url).pathname;
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
const root = fileURLToPath(new URL("../..", import.meta.url));
|
||||
|
||||
const binding = typeof process.versions.bun === "string"
|
||||
// Support `bun build --compile` by being statically analyzable enough to find the .node file at build-time
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue