shadow-cljs

souenzzo 2025-08-26T12:45:03.119909Z

Hello Anyone working with shadow-cljs+storybook? https://github.com/lilactown/storybook-cljs was built in storybook ~5 and storybook 9 was released (and as a JS framework, it changed A LOT)

thheller 2025-08-26T14:33:00.206999Z

this has been discussed several times over the years. search should find something. I haven't kept up and haven't looked at it for a while, so not quite sure. IIRC storybook wants to statically analyze the code and didn't understand CLJS output properly last time.

valerauko 2025-08-26T15:05:33.125399Z

yes

valerauko 2025-08-26T15:07:05.408579Z

we use a setup based on https://github.com/factorhouse/storybook-cljs i plan to feed back our work upstream but i haven't had the time to do that yet cf https://clojurians.slack.com/archives/C03S1L9DN/p1751255967882449?thread_ts=1750989005.180619&cid=C03S1L9DN

valerauko 2025-08-26T15:54:20.733759Z

long story short you currently have to manually generate js code for storybook to analyze because of compiler limitations

souenzzo 2025-08-26T15:56:08.469779Z

thanks for all the references Have you ever tried to "re-implement" Storybook, using its internal UI components, but bypassing the entire build system? (I'm considering trying this path)

valerauko 2025-08-27T00:15:51.766989Z

no. going that way is even more effort and is extremely fragile to storybook internal changes (which are bound to happen)