Not easily. Many of the macros in Fulcro expect the JVM because of SSR support, and would all have to be ported to bootstrapped cljs. It of course is possible, but it would need to be an actual fork, since it would be way too much work to try to maintain bootstrapped cljs support while also not breaking functionality.
But then maintaining a fork is quite a pain
I see. Thank you!
🙏 Pls help me test the new, compile-time check of query validity in Fulcro, especially if you have any non-trivial app (already tested on RAD-demo) - simply change your fulcro dependency to {:git/url "<https://github.com/holyjak/fulcro.git>", :sha "dae6a795eee6fcc5e6bb3df9872b54f26b980fd6"}
(which is latest Fulcro develop + 1 commit) and restart shadow-cljs (if you are running the backend, you can likely leave it be, this change is only relevant for the frontend). Share whether it works for you! 🙏
To test, add eg an empty {}
into a query. (Beware - the check doesn't work for queries inside lambdas)
You can also add to your deps.edn
this alias
:aliases {:jh/fulcro {:override-deps {com.fulcrologic/fulcro {:git/url "<https://github.com/holyjak/fulcro.git>", :sha "dae6a795eee6fcc5e6bb3df9872b54f26b980fd6"}}}
and then activate it in shadow-cljs.edn
:
{:deps {:aliases [:dev :test :jh/fulcro]} ...
You don’t have to modify shadow-cljs.edn, you can just add -A:jh/fulcro
at the command line shadow-cljs -A:jh/fulcro server
I can confirm this does not break a project that has 60kloc. One minor improvement, which I’ll mention in the issue