New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build-wasm: generated .wasm file excessively large and not working #30
Comments
Update: updating dependencies generates a 6MB file but still fails to execute with the same error. Probably is combining some low level dependencies ? |
I didn't get exactly the same error message, but #31 fixed it for me. The size is still 6MB, but the performance is good. |
Thanks for these reports on the wasm code size, and sorry that it can still be a bit large in some cases. Things got better in Tree-sitter 0.15.3, tree-sitter/tree-sitter#334 will make them a bit better still, and there's still more work to do on code size. |
Repro steps:
This will generate tree-sitter-ocaml.wasm , with 19MB size and it will throw the following error while executing with node.js:
Ii think there's something wrong with it, since the rest of the grammars generates .wasm of no more that 1-2 MB.
The text was updated successfully, but these errors were encountered: