I have just read through the latest discussion around cljs support update and the realworld example. I think it makes logical sense for the entrypoint to the compiled javascript to be a polylith base, but I am left wondering how I should structure my project if I have a base that serves that javascript file. For example, say I have "rest-api" and "frontend" bases, and I want "rest-api" to serve the frontend js. Is the intended approach that the "rest-api" project would depend on both bases to put the compiled frontend code into the uberjar?
I assume you would serve the “compiled” js file, not the cljs sources. In this case, you can place the compiled JS file under the resources directory of the base or project, whichever makes more sense to you.
That makes sense to me. I suppose it is not really at odds with polylith philosophy to have a project that builds two bases. Thanks!