hyperfiddle

tobias 2025-05-08T07:23:24.570859Z

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?

tobias 2025-05-08T07:51:46.553279Z

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

tobias 2025-05-08T07:52:08.210049Z

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.

tobias 2025-05-08T07:52:28.697459Z

but actually just npm install process was all that was needed.

Vincent 2025-05-08T19:56:32.820919Z

What's the best way to do a production build? Does it produce a minified JS and a jar? Or like, Clojure executable?

tobias 2025-05-09T06:04:49.430169Z

The readme in the starter app has instructions for various options

Vincent 2025-05-10T21:39:38.930399Z

thanks