This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-01-07
Channels
- # announcements (2)
- # beginners (30)
- # calva (7)
- # cherry (15)
- # clerk (21)
- # clojure (1)
- # clojure-losangeles (12)
- # clojure-norway (1)
- # clojure-spec (3)
- # clojurescript (31)
- # conjure (2)
- # cursive (44)
- # datomic (13)
- # emacs (13)
- # honeysql (15)
- # hyperfiddle (7)
- # malli (2)
- # off-topic (17)
- # overtone (6)
- # reitit (7)
- # ring (58)
- # shadow-cljs (12)
- # squint (14)
- # tools-deps (14)
- # web-security (1)
- # xtdb (29)
I have an edn file that I am loading in a macro dynamically (the name of the file is passed to the macro) and that macro is used in 2 builds. When I edit the edn file, the changes are not picked up, even if I add
:build-options {:cache-level :off}
to both builds and all namespaces to :cache-blocker
If I remove .shadow-cljs
and builds
directories both, and then recompile everything then it works
I am open to alternative approaches, like not using .edn file, but the file needs to be dynamically loaded in a macro. Is this even possible to be configured correctly, I wonder?if you use this helper function to get the contents of the file it should work https://github.com/thheller/shadow-cljs/blob/483a25b522895225b63321e39bbc081dfba8c58b/src/main/shadow/resource.clj#L11
looks exactly what I need, thanks. Need to figure out how to use it because naively replacing slurp with slurp-resource doesn't yet change the behavior. Likely I am doing something wrong (again).
Thanks, I want to try first a bit to understand alone, otherwise I will forget if you just give me the solution 😄
https://github.com/rauhs/hicada/blob/master/src/hicada/compiler.cljc#L416 this one though, essentially I am just finding a file and passing it to this
actually, rc/inline works fine of course I just had a very convoluted way to add the namespace to the path and that needed removing thanks again