Fork me on GitHub
#shadow-cljs
<
2022-11-12
>
thheller07:11:32

@zane if I change the require to "mermaid/dist/mermaid.core.mjs" it seems to work fine. can't tell if the commonjs variant you get via "mermaid" is busted itself, or if the closure compiler rewriting it messes it up

thheller05:11:44

I tried "mermaid/dist/mermaid.core.mjs" and it worked.

thheller05:11:20

yes, the closure compiler is used to process all JS code. just not for full :advanced optimizations

1
zane05:11:33

Got it. I’ll try to reproduce with just cljsbuild then.

zane05:11:20

Yes, saw that core works, but that bundle is significantly smaller so presumably it’s missing some stuff.

zane05:11:13

Do you want an issue against shadow for tracking purposes?

thheller05:11:24

sure, but if the issue is truly in the closure compiler (which I'm 99% certain of) I can't do anything

1
zane05:11:20

No problem whatsoever. I appreciate you having a look! And thanks for shadow-cljs!