highlightjs / highlightjs-shexc

MIT License
4 stars 2 forks source link

requireLanguage deprecation #7

Open joshgoebel opened 3 years ago

joshgoebel commented 3 years ago

https://github.com/highlightjs/highlight.js/pull/2844#pullrequestreview-529833532

Something you should look out for in the future... may want to switch back to getLanguage or write your own if you need the specific "blow up" error behavior. We're recommending build-time dependencies now rather than runtime... IE you'd use a ES6 module module to just import the dependency. See javascript.js and ecmascript.js, for examples.

As long as you're using the 3rd party build process you should be able to do this also.

joshgoebel commented 3 years ago

It doesn't look like you're using this Api anymore?