Fork me on GitHub
#clojurescript
<
2023-08-18
>
DerTev23:08:29

Am I able to use my Cljc/Cljs-Libraries from Kotlin/JS or vice versa?

mauricio.szabo04:08:31

For CLJS, no, but actually, yes. You will need to export an interface for JS to consume; then compile things either as node-library or esm. Doable, just a little tedious. But keeping CLJS, then importing on JS and having some API to generate "ClojureScript things" like vector, map, it's not doable, unfortunately...

thheller06:08:15

sure it is doable, just not very convenient. in general I'd not recommend trying this. it is going to be clunky and non-ideal from both the CLJS and JS perspectives since you are going to do a lot of datastructure conversions which sucks a little