WebAssembly
Tombi's WebAssembly support is published as two npm packages. They are separated so an application only downloads the runtime it needs:
| Package | Contents |
|---|---|
tombi-wasm-lib | Formatter and linter |
tombi-wasm-lsp | Language Server |
Install only the package required by your application:
pnpm add tombi-wasm-lib
pnpm add tombi-wasm-lspThese packages are intended for browsers. For formatting and linting in
server-side Node.js, use the native tombi-lib package
instead of tombi-wasm-lib.
The two packages are built from the shared tombi-wasm Rust crate. The lib and
lsp features produce independent WASM artifacts.