@lumis-sh/wasm-bundle-web
v0.0.4
Published
Lumis WASM web language bundle
Maintainers
Readme
@lumis-sh/wasm-bundle-web
Lumis WASM web language bundle.
Install
npm install @lumis-sh/lumis @lumis-sh/wasm-bundle-webNode.js
Install this package alongside @lumis-sh/lumis/bundles/web and Lumis will resolve the local parser packages automatically.
Browser bundlers
import { createHighlighter, withWasmBundle } from '@lumis-sh/lumis'
import { bundledLanguages } from '@lumis-sh/lumis/bundles/web'
import { bundledWasms } from '@lumis-sh/wasm-bundle-web'
const languages = withWasmBundle(bundledLanguages, bundledWasms)
const highlighter = await createHighlighter({ languages: [languages] })