mirror of
https://github.com/tree-sitter/tree-sitter.git
synced 2026-09-10 07:26:23 -04:00
fix(bindings): fix root detection on windows
This commit is contained in:
parent
122493b717
commit
24c8feba3e
|
|
@ -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…
Reference in a new issue