@lumis-sh/wasm-bundle-full
v0.0.6
Published
Lumis WASM full language bundle
Maintainers
Readme
@lumis-sh/wasm-bundle-full
Lumis WASM full language bundle.
Install
npm install @lumis-sh/lumis @lumis-sh/wasm-bundle-fullNode.js
Install this package alongside @lumis-sh/lumis/bundles/full 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/full'
import { bundledWasms } from '@lumis-sh/wasm-bundle-full'
const languages = withWasmBundle(bundledLanguages, bundledWasms)
const highlighter = await createHighlighter({ languages: [languages] })