Not sure if this use case is supported, or even if it’s a sane one. Basically, I want JS specific to each page. I will have .cljc file for each page. I basically want this file compiled into its own module. So for example, given the files “pages/login.cljc” and “pages/contact.cljc”, I would like to generate a “login.js” and “contact.js”. Right now I’m doing that with this shadow-cljs.edn modules config:
:app {:entries [project.app]}
:login {:entries [project.pages.login]
:depends-on #{:app}}
:contact {:entire [project.pages.contact]
:depends-on #{:app}}
But I already have a list of pages elsewhere in the code for things like routes. I would love to use that list of pages to generate these modules, or even just infer it from the files in the pages
directory. Is this possible?