From ea6e4eb581add248ed294514ca37516c99de9f45 Mon Sep 17 00:00:00 2001
From: Thomas Heller
Date: Thu, 19 May 2022 19:41:47 +0200
Subject: [PATCH] stop watching .gitlibs for changes
updating them requires changing the classpath and they are
filtered in other places already as well.
fixes #1013
---
src/main/shadow/cljs/devtools/server.clj | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/main/shadow/cljs/devtools/server.clj b/src/main/shadow/cljs/devtools/server.clj
index 5c00b391..4a506ec6 100644
--- a/src/main/shadow/cljs/devtools/server.clj
+++ b/src/main/shadow/cljs/devtools/server.clj
@@ -407,6 +407,7 @@
(:fs-watch config)
(->> (build-classpath/get-classpath-entries classpath)
(filter #(.isDirectory %))
+ (remove build-classpath/is-gitlib-file?)
(into []))
["cljs" "cljc" "clj" "js"]
#(system-bus/publish! system-bus ::m/cljs-watch {:updates %})