Open milahu opened 3 years ago
see my vite-plugin-tree-sitter
cos webpack is soooo old ; ) vite allows faster development with hot module reload of ESM modules
not tested in production mode → copy wasm files to /dist
/dist
by default, tree-sitter will request /tree-sitter.wasm → ideally, use relative paths, for gh-pages etc
/tree-sitter.wasm
gh-pages
not tested with grammars from npm → no need to compile wasm file, only serve
i needed a way to install tree-sitter grammars from source for example tree-sitter-nix has no npm release with prebuilt wasm file
im using the same build command as tree-sitter build
tree-sitter build
see my vite-plugin-tree-sitter
cos webpack is soooo old ; ) vite allows faster development with hot module reload of ESM modules
not tested in production mode → copy wasm files to
/dist
by default, tree-sitter will request
/tree-sitter.wasm
→ ideally, use relative paths, forgh-pages
etcnot tested with grammars from npm → no need to compile wasm file, only serve
i needed a way to install tree-sitter grammars from source for example tree-sitter-nix has no npm release with prebuilt wasm file
im using the same build command as
tree-sitter build