Ability to provide or load prism related helpers without using https
Closed this issue · 3 comments
minht11 commented
Right now it loads prism related files at runtime, skipping bundler, it would be cool if component consumers could provider their own implementations of prism from npm which could be bundled.
andreruffert commented
I published a new prerelease version 1.2.0-beta.0 which introduces support to opt out of autoloading the prism tokenizer e.g.
// Opt out of prism autoload by manually importing prism core
import 'prismjs/components/prism-core';
// Load lang deps manually (without dependency resolution)
import 'prismjs/components/prism-markup'
import 'prismjs/components/prism-css'
import 'prismjs/components/prism-clike'
import 'prismjs/components/prism-javascript'
// other language dependencies ...
import 'syntax-highlight-element';
// ...Please let me know if opting out of autoloading the prism tokenizer works for you.
You can install the prerelease via npm install syntax-highlight-element@next.
Thanks!
✌️
minht11 commented
It works in beta. Thanks!