tree-sitter.tree-sitter/crates
katrinafyi ac17c8d003 playground: set default LANGUAGE_BASE_URL to "." to fix subfolder hosting
Previously with the empty string base URL, the playground would not work when hosted at a subfolder of the domain. This is because playground.js has this code:

      const url = `${LANGUAGE_BASE_URL}/tree-sitter-${newLanguageName}.wasm`;

With an empty string, it would look for wasm at the root of the website and 404.

Github code search shows that this is an issue which lots of people have run into, and everyone has to work around it: https://github.com/search?q=%2FLANGUAGE_BASE_URL+%3D+%22%22%2F+-language%3AHTML&type=code

Related to https://www.github.com/tree-sitter/tree-sitter/issues/5230
2026-08-24 19:41:26 -04:00
..
cli playground: set default LANGUAGE_BASE_URL to "." to fix subfolder hosting 2026-08-24 19:41:26 -04:00
config fix(rust): use more accurate types for various IoError structs 2026-06-13 09:35:12 -04:00
generate fix(generate): avoid mutating inherited reserved sets 2026-08-23 17:08:31 -04:00
highlight refactor(rust): trim unused imports (#5845) 2026-08-12 14:27:52 +02:00
language Allow using Tree-sitter rust lib in multi-threaded web apps compiled to wasm32-unknown-unknown (#5851) 2026-08-14 17:05:42 -07:00
loader build(deps): bump binaryen to v132 2026-08-14 09:33:39 +02:00
tags refactor(rust): trim unused imports (#5845) 2026-08-12 14:27:52 +02:00
xtask Upgrade to latest wasmtime, improve robustness and perf of wasm-based parsing (#5847) 2026-08-20 21:02:11 +00:00