Open patarapolw opened 4 years ago
Can you provide a more info, a codepen for instance? I think this is related to Babel, but I need more info.
NVM, I move the definition inside Class scope, so there is no problem now.
Still, I believe you shouldn't module.export.definer
.
The problem returns, but it is easily fixed by changing "main": "vue.js",
; So I guess it is a regression report. Rollup doesn't work. (why would you need rollup for commonjs, anyway?)
The code is https://github.com/patarapolw/make-html/blob/59151beb90c583df58227ccbd0f894fab595a4f9/packages/frontend-functions/src/index.ts#L15, BTW.
Seeing this issue too
Highlight.js maintainer here. Please see https://github.com/highlightjs/highlight.js/issues/3008
In core team's opinion the correct answer here is:
npm
, etc.hljs.registerLanguage
(for easy use in web browser)And Highlight.js can even build that CDN distributable for you. It takes only a few seconds. Please have a look at the issue in question and let me know if you have any questions.
I think last lines should probably be changed to something like,