How to convert jvm bytecode to js in cljs build

As I understand it, most clojure and java libraries can be included in cljs code. How does the cljs compiler do this?

I understand that if I have the source file, the cljs compiler takes the source code and outputs javascript. However, what about using java libraries such as joda-time, for which I have included the clojure clj-time shell. So in this case it only has java byte code for joda-time. So, how will the cljs creation tool be created, generate the js code from the java-jar (joda-time) byte code?

+5
source share
2 answers

As I understand it, most clojure and java libraries can be included in cljs code. How does the cljs compiler do this?

. clojure CLJS ( ), : .clj, javascript, classfiles.

+4

Java cljs.

+2

All Articles