Wraps highlight.js language modules as async webpack chunks, enabling on-demand loading of syntax highlighting. Version 1.0.4 (latest) returns false on error. Provides `hljsBlock(dom, lang, callback)` for async highlighting. Minimal API, no peer dependencies. Only compatible with webpack due to dynamic require context. Not actively maintained; last release 5+ years ago.
npm install highlight.js-async-webpackVerified import paths — ran on the pinned version, not inferred.
Demonstrates importing the package and invoking hljsBlock with a DOM element, language class, and callback.
Consider using highlight.js with dynamic imports directly, or use highlight.js official npm package.
Use only in webpack projects; for others, use highlight.js manual chunking.
Always provide a callback function even if it's a no-op.
Ensure the required language files are present in the webpack build context.
Run: npm install highlight.js-async-webpack
Use: import hljs from 'highlight.js-async-webpack' (default import)
Check that the language name passed to hljsBlock matches an existing file like 'javascript' (not 'js').
No dependency data recorded yet.