This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-02-05
Channels
- # announcements (1)
- # aws (6)
- # babashka (8)
- # beginners (22)
- # cider (12)
- # clj-kondo (1)
- # cljdoc (15)
- # clojure (109)
- # clojure-dev (6)
- # clojure-europe (40)
- # clojure-losangeles (5)
- # clojure-uk (1)
- # clojurescript (28)
- # data-oriented-programming (3)
- # datahike (9)
- # datalevin (9)
- # holy-lambda (2)
- # juxt (5)
- # lsp (4)
- # malli (2)
- # meander (1)
- # missionary (5)
- # nextjournal (3)
- # off-topic (17)
- # reagent (1)
- # reitit (8)
- # releases (1)
- # sci (16)
- # shadow-cljs (7)
- # sql (9)
- # tools-deps (9)
- # transit (1)
I'm trying to patch a js dependency in node_modules
folder. Is it possible to make shadow-cljs reload when changes are made to dist
files of a package in node_modules
?
@shivekkhurana you can touch node_modules/that-package/package.json
to make shadow-cljs reload it
I found this solution in the history. Someone asked this question on 2019.
Thanks !
I found a hacky way to live reload node_modules
folder on change. I have added the package path to :paths
in config. And instead of using it as @pkg/name
is use it as /@pkg/name
. This forces shadow to treat it as source code and perform HMR on change.
lol
I just do that in dev mode, and then turn it back to @pkg/name
(drop the /
).