Fork me on GitHub
#cherry
<
2022-12-03
>
Aleed00:12:04

how are clojurescript deps* handled when using cherry? just realizing that the typical deps.edn may not work outright, but couldn’t find any examples or issues on topic

Aleed01:12:31

hm I’m thinking it’s meant to be done via bb.edn but since i’m compiling files via framework’s build process (webpack and metro), this would just be a separate step of creating bb compiled file with deps

Aleed02:12:56

ok seeing how nbb loads deps to see what could be done https://github.com/babashka/nbb/blob/df170a3a6bd7ec3ca009c39b207fc2f7d7dac925/src/nbb/api.cljs#L48 still wondering what the overall expectation is before going in on any one solution

borkdude08:12:00

not yet implemented

Aleed20:12:28

example isn’t fully working but i did extract the logic in case anyone follows this trail https://github.com/alidcast/next-cherry-cljs-example

Aleed20:12:32

oh wow did not know shadow-cljs recently released an esm target https://shadow-cljs.github.io/docs/UsersGuide.html#target-esm I still see value in having cljs exposed as npm module and not depending on google closure compiler, but this does alleviate some of the pain points Cherry was resolving

Aleed20:12:53

I wonder how difficult it’d be for shadow-cljs to integrate a cherry-cljs target

borkdude20:12:35

yes, cherry of course uses shadow with the esm target to build itself, so does #C029PTWD3HR

👍 1