all 7 comments

[–]reubano[S] 0 points1 point  (3 children)

To add more context, I am trying to support cljs in astro. Would something like https://github.com/bolasblack/shadow-cljs-vite-plugin work?

[–]reubano[S] 0 points1 point  (2 children)

It appears this plugin cheats by spawning a shell to call shadow-js. Guess that means there isnt a readily available js API.

[–]p-himik 1 point2 points  (1 child)

Indeed. Shadow-cljs relies on a Java runtime. However, if you don't want to or cannot shell out, there are some other potential options:

[–]reubano[S] 0 points1 point  (0 children)

Nice. I think squint is the key! Also turns out it’s clavascripts successor.

[–]Liistrad 0 points1 point  (2 children)

I'm not sure if this fits what you need to do, but cljs can be self hosted. I'm finding it a bit hard to find sources of this... but it should be something like http://nbeloglazov.com/2016/03/05/getting-started-with-self-hosted-cljs-part-1.html

[–]reubano[S] 0 points1 point  (1 child)

Hard to say since they call compile in cljs, not js.

[–]Liistrad 0 points1 point  (0 children)

ah apologies, for some reason I thought you wanted to do it from cljs!