This commit is contained in:
Christian Clason 2025-12-13 13:01:32 +01:00 committed by Christian Clason
parent 8caecbc13f
commit cd4b6e2ef9
11 changed files with 25 additions and 25 deletions

View file

@ -51,7 +51,7 @@ Report conflicts in a JSON format.
### `--js-runtime <EXECUTABLE>`
The path to the JavaScript runtime executable to use when generating the parser. The default is `node`.
Note that you can also set this with `TREE_SITTER_JS_RUNTIME`. Starting from version 0.26.2, you can
Note that you can also set this with `TREE_SITTER_JS_RUNTIME`. Starting from version 0.26, you can
also pass in `native` to use the experimental native QuickJS runtime that comes bundled with the CLI.
This avoids the dependency on a JavaScript runtime entirely. The native QuickJS runtime is compatible
with ESM as well as with CommonJS in strict mode. If your grammar depends on `npm` to install dependencies such as base grammars, the native runtime can be used *after* running `npm install`.