Fork me on GitHub
#calva
<
2021-07-26
>
pinkfrog11:07:59

I run “fire up clojurescript browser repl”. Behind the theme, what is transpiling the cljs code to js, shadow or figwheel, or the vanilla cljs-build? And how does this happen?

Ryan Jerue13:07:09

I assume you mean the calva cljs getting started repl? I’m not too sure what is behind it for the “Welcome” app (though I don’t see any evidence of shadow, so my guess is vanilla), but ClojureScript is the compiler that compiles the cljs to js. https://clojurescript.org/ If you look at the sources tab under the element inspector, you can even see the js that gets returned, though it’s far from human readable.

pez14:07:50

Yes, it's vanilla ClojureScript.

pinkfrog14:07:47

When does the cljs got compiled to js?

pez15:07:02

The REPL is started like on https://clojurescript.org/ , the minimal cljs project.

pez15:07:42

Thanks! I was not at the computer. Anyway, I choose to use a vanilla ClojureScript REPL for this in the hope that newcomers will better understand the role of shadow-cljs and Figwheel, if they are not led directly there.