When using modules , is there a way that some module doesn't depend on any of the others?
well the base module doesn't depend on any other, but besides that no
OK, I see
Maybe I will need two different builds 🤔
dunno what you are trying to do 🤷
The thing is that an update of the Microsoft MSAL library https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/login-user.md#redirecturi-considerations to have a second HTML file with some JS library call:
Redirect
Processing authentication...
Because it's a node library I can't directly embed raw JS there, so I need a bundler. I was thinking how to do it with shadow-cljs without having to include the whole applications JS bundle (because it's quite fat, and also having problems with re-frame-10x)if that doesn't share anything with your actual code then a second build seems to make sense
BTW, can I build a library that provides the compiled JS + HTML and use it from the main project? or including external assets is not supported?
yes, you can include external assets. but it becomes problematic if that compiled assets contains CLJS outputs, since it duplicates cljs.core (and potentially others)
I would assume that the above code snippet has a pre-built variant that doesn't need bundling at all
Unfortunately, I think there are no pre-built variants 😅
Thanks a lot, I will give a thought
https://app.unpkg.com/@azure/msal-browser@5.9.0/files/lib/redirect-bridge
minified and normal
no clue what any of this is but just looking at the contents of the npm package there are a lot of pre-built files
Oh, I missed that! Works like a charm. Thanks a lot