@lumis-sh/wasm-vue
@lumis-sh/wasm-vue
Self-contained Lumis language package for vue.
The Tree-sitter parser is compiled to WASM and ships with the queries that highlight it.
Built with tree-sitter build --wasm v0.26.11
Used by Lumis and compatible with web-tree-sitter v0.26 and other WASM runtimes.
Installation
npm install @lumis-sh/wasm-vue
Usage
The package exports the language, ready for Lumis, in Node and in a browser:
import { createHighlighter } from '@lumis-sh/lumis'
import vue from '@lumis-sh/wasm-vue'
const highlighter = await createHighlighter({ languages: [vue] })
What it contains
tree-sitter-vue.wasm is the parser. lumis.json describes it and records its size, its SHA-256 and the queries.
Node reads both from the installed package, and a bundler ships them with your code, so nothing is downloaded at runtime.
Parser
| Parser | Version | Rev |
|---|---|---|
| https://github.com/tree-sitter-grammars/tree-sitter-vue.git | 0.1.0 | ce8011a414fdf8091f4e4071752efc376f4afb08 |
The same parser is published to Hex as
lumis_wasm_vue — byte for byte, from
one build, so both registries serve the same artifact.
CDN
- https://unpkg.com/@lumis-sh/wasm-vue@0.26.2/tree-sitter-vue.wasm
- https://cdn.jsdelivr.net/npm/@lumis-sh/wasm-vue@0.26.2/tree-sitter-vue.wasm
License
The Lumis packaging is MIT. The parser itself is redistributed from the upstream project above; see that project for its license.
Related Packages
Embeddable Vue 3 ticket-format editor with a 1:1 wasm preview. Zero coupling to...
A Vue 3 plugin for fully-local OnlyOffice document editing. Aligns with the upst...
Version History
| Version | Released | License |
|---|---|---|
| 0.26.2 | MIT | |
| 0.26.1 | MIT | |
| 0.26.0 | MIT |