figwheel-main
figwheel-main copied to clipboard
hooks not always called when dependencies change & :build-inputs set
I think the underlying issue might be in figwheel-core, but I'm not certain.
Repo for reproducing here: https://github.com/SevereOverfl0w/figwheel-main-hooks-dependencies derived from the figwheel template.
Repro steps:
- Clone the repo (:
- Run
clojure -A:fig:build
-
touch src/hello_world/app.cljs
(Get alert) -
touch src/hello_world/dep.cljs
(Do not get alert)
As a bonus I also made the on-reload hook dependent on dep.cljs, so this is quite interesting:
- Modify src/hello_world/dep.cljs, and change 2 to 3.
-
touch src/hello_world/app.cljs
(Get alert, but with 2 still).
So I'm looking into this and I've found the problem and I've started on a solution.
Sorry for the delay here, it's a pretty tricky situation when build-inputs are used as the compiler doesn't create the same analysis-data as when its passed source directories.
I've been really busy with other things. I'm planning on getting back to this soon.