cljs-dev

dnolen 2024-10-11T13:37:15.798769Z

@thheller so what is the state of shadow-cljs and advanced compilation of Node stuff, is it still just a case by case thing or you have enhanced this over time? I'm back to doing more web stuff at work so back on my radar. today I was looking at autoComplete.js which feels like it should work - but the way the package.json is not ideal.

thheller 2024-10-11T14:04:31.030659Z

gave up a long time ago and never looked at it again. there is just too much stuff the closure compiler doesn't like or plainly destroys with :advanced. It does work if all packages used are "standard" ESM, but that is still relatively rare

👀 1
thheller 2024-10-11T14:05:35.652629Z

react and stuff still break because of some "meta-programming" stuff the closure compiler doesn't identify correctly, i.e. accessing properties via foo[some_str] and foo.bar in other places

thheller 2024-10-11T14:06:34.414079Z

you can fix most issues by manually crafting externs, but who wants to do that 😛

dnolen 2024-10-11T15:54:54.041149Z

gotcha, was just wondering if people were looking at some these zero dep JS libraries and trying to get it to work w/ shadow