You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently web-tree-sitter on npm has just these 6 files
LICENSE
README.md
package.json
tree-sitter-web.d.ts
tree-sitter.js
tree-sitter.wasm
where tree-sitter.js is a minified, single-line javascript file. This makes debugging/understanding it difficult.
Expected behavior
tree-sitter.js shouldn't be minified. Users can minify it themselves if they need to, along with the rest of their JavaScript.
Additionally, it would be great to generate source maps for tree-sitter.wasm so that developers could see the original C code it's running https://emscripten.org/docs/porting/Debugging.html , as long as this can be done without affecting performance.
The text was updated successfully, but these errors were encountered:
Generating source maps without affecting performance is not possible, see emscripten-core/emscripten#20462 so this will have to only apply to --debug and not the release build.
Problem
Currently web-tree-sitter on npm has just these 6 files
where tree-sitter.js is a minified, single-line javascript file. This makes debugging/understanding it difficult.
Expected behavior
tree-sitter.js shouldn't be minified. Users can minify it themselves if they need to, along with the rest of their JavaScript.
Additionally, it would be great to generate source maps for tree-sitter.wasm so that developers could see the original C code it's running https://emscripten.org/docs/porting/Debugging.html , as long as this can be done without affecting performance.
The text was updated successfully, but these errors were encountered: