Skip to content

Don't minify tree-sitter.js #3379

@verhovsky

Description

@verhovsky

Problem

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions