This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-12-03
Channels
- # adventofcode (23)
- # announcements (2)
- # babashka (54)
- # babashka-sci-dev (2)
- # beginners (14)
- # biff (5)
- # calva (25)
- # cherry (9)
- # clj-kondo (4)
- # clojure-europe (2)
- # clojure-japan (2)
- # clojurescript (1)
- # data-science (6)
- # datascript (3)
- # datomic (1)
- # dev-tooling (25)
- # etaoin (5)
- # events (5)
- # hyperfiddle (1)
- # nbb (2)
- # off-topic (27)
- # shadow-cljs (1)
- # xtdb (7)
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
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
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
yeah, there's an issue for this here: https://github.com/squint-cljs/cherry/issues/64
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
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