shadow-cljs

2025-05-07T17:45:58.593879Z

Is there an advantage of running shadow-cljs with npx shadow-cljs instead of requiring it in clojure and using shadow.cljs.devtools.api? It seems like npx also launches a java process (how btw?) so it doesn't seem worthwhile to launch two java processes - one for our app and one for shadow-cljs

pez 2025-05-09T20:09:13.895219Z

With Calva it makes a huge difference when using add-lib because Calva’s Clojure repl will be connected to the wrong JVM process and not load libraries into the JVM from which the shadow-cljs ClojureScript REPL runs. I suspect Calva may be doing something wrong here, but anyway, starting shadow from the REPL will work fine.

thheller 2025-05-07T19:58:12.193639Z

yes, embedded is fine if you prefer one JVM process