Dumb question, but if I want to use shadow-cljs to add js packages from npm to my Electric project, then I need to install npm install --save-dev shadow-cljs in my Electric project, right?
Electric starter app uses shadow-cljs the library but not shadow-cljs the npm package, and I need the latter in order to use other npm packages, right?
Answering my own question, I don't think I need to npm install --save-dev shadow-cljs after all. What tripped me up is this issue here:
https://clojurians.slack.com/archives/C6N245JGG/p1745575597950839
where my shadow-cljs repl complained about
process is part of the node-libs-browser polyfill package to provide node-native package support for none-node builds. You should install shadow-cljs in your project to provide that dependency.but actually just npm install process was all that was needed.
What's the best way to do a production build? Does it produce a minified JS and a jar? Or like, Clojure executable?
The readme in the starter app has instructions for various options
thanks