shadow-cljs

Bingen Galartza Iparragirre 2026-05-05T12:44:11.020209Z

When using modules , is there a way that some module doesn't depend on any of the others?

thheller 2026-05-05T12:48:36.720889Z

well the base module doesn't depend on any other, but besides that no

Bingen Galartza Iparragirre 2026-05-05T12:53:20.690779Z

OK, I see

Bingen Galartza Iparragirre 2026-05-05T12:53:50.632269Z

Maybe I will need two different builds 🤔

thheller 2026-05-05T12:55:04.783959Z

dunno what you are trying to do 🤷

Bingen Galartza Iparragirre 2026-05-05T13:00:35.284059Z

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)

thheller 2026-05-05T13:09:42.965839Z

if that doesn't share anything with your actual code then a second build seems to make sense

👍 1
Bingen Galartza Iparragirre 2026-05-05T13:12:49.712949Z

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?

thheller 2026-05-05T13:17:47.590579Z

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)

thheller 2026-05-05T13:19:16.020269Z

I would assume that the above code snippet has a pre-built variant that doesn't need bundling at all

Bingen Galartza Iparragirre 2026-05-05T13:25:41.964829Z

Unfortunately, I think there are no pre-built variants 😅

Bingen Galartza Iparragirre 2026-05-05T13:25:52.654259Z

Thanks a lot, I will give a thought

thheller 2026-05-05T13:27:21.729209Z

minified and normal

thheller 2026-05-05T13:28:30.692699Z

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

Bingen Galartza Iparragirre 2026-05-05T14:55:26.036389Z

Oh, I missed that! Works like a charm. Thanks a lot