This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-08-28
Channels
- # anglican (2)
- # announcements (2)
- # babashka (41)
- # babashka-circleci-builds (1)
- # beginners (45)
- # brompton (2)
- # calva (13)
- # cider (13)
- # clj-kondo (14)
- # cljsrn (6)
- # clojure (60)
- # clojure-europe (4)
- # clojure-nl (3)
- # clojurescript (1)
- # code-reviews (3)
- # conjure (2)
- # cryogen (5)
- # datomic (22)
- # fulcro (13)
- # graalvm (19)
- # introduce-yourself (1)
- # kaocha (2)
- # leiningen (2)
- # lsp (1)
- # malli (4)
- # meander (1)
- # music (1)
- # news-and-articles (2)
- # off-topic (17)
- # polylith (6)
- # practicalli (2)
- # react (15)
- # reactive (1)
- # reagent (8)
- # reitit (2)
- # releases (1)
- # rum (10)
- # shadow-cljs (6)
- # spacemacs (4)
- # sql (2)
- # tools-deps (4)
- # xtdb (21)
they should most definitely change after restarting the server. you can even skip restarting the server and just touch node_modules/your-lib/package.json
FWIW the check whether a file was modified only uses the last modified timestamp, so make sure those actually change
Hello! What do I need to override a dependency with a local one, and the changes visible in the UI (i.e. frontend code)? What I did is have, in my global ~/.clojure/deps.edn
this alias:
:dev/fulcro-rad {:override-deps {com.fulcrologic/fulcro-rad {:local/root "/Users/me/Projects/external/fulcro-all/fulcro-rad"}}}
and then I simply added it to shadow-cljs.edn
:
{:deps {:aliases [:dev :test :sql :dev/fulcro-rad]}
I restarted npx shadow-cljs watch main
but it seems that the modified code from the local override is not used there. So what else do I need to do? Remove some caches, ...? (The browser has dev tools open and "no cache if dev tools" enabled.) 🙏
Do I perhaps need to run frontend build in the dependency?I have a Cljs library (klipse-clj) and I'd like to package it as an npm module to be consumed both in node and in the browser.
I am using :target :node-library
and shadow-cljs compile
and it works perfectly for node.
What am I supposed to do in order to bundle the lib as a single JavaScript file for the browser?
what do you mean by "for the browser"? as is loaded direclty in the browser or after processing by some other bundler (eg. webpack)?
Loaded directly in a <script>
tag