Skip to content

Graphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.

1.5 KB
Raw Blame

tree-sitter-dart WASM (vendored)

This directory ships a pre-built tree-sitter-dart.wasm because the upstream npm release does not.

Why vendored

The published [email protected] (2023-02-24) tarball does include a tree-sitter-dart.wasm, but it was built with a pre-dylink.0 tree-sitter CLI. [email protected] — the loader this project uses — expects the newer dylink.0 custom-section name and refuses to load the older format (failure surfaces in getDylinkMetadata).

Rebuilding the same upstream grammar.js with a current [email protected] produces a dylink.0 wasm that loads cleanly.

How to rebuild

npm install -g tree-sitter-cli@latest
cd /tmp && npm pack [email protected]
tar xzf tree-sitter-dart-1.0.0.tgz
cd package
tree-sitter build --wasm
cp tree-sitter-dart.wasm \
   /path/to/understand-anything-plugin/packages/tree-sitter-dart-wasm/

Verify the resulting wasm:

head -c 30 tree-sitter-dart.wasm | xxd | head -1
# Expect: ...dylin / k.0...

Provenance

When to remove this package

If amaanq publishes a refreshed tree-sitter-dart with a dylink.0 wasm, this workspace package can be deleted and the dependency in @understand-anything/core flipped to the upstream package.