Skip to content

Commit 2e15a5c

Browse files
author
dnolen
committed
CLJS-2688 cljs.main: Accumulate all meaningful repeated inits modules using global-exports
1 parent 92c9d60 commit 2e15a5c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/clojure/cljs/cli.clj

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,7 @@ classpath. Classpath-relative paths have prefix of @ or @/")
172172
[cfg paths]
173173
(let [paths (util/split-paths paths)]
174174
(validate-watch-paths paths)
175-
(assoc-in cfg [:options :watch] (cond-> paths
176-
(== 1 (count paths))
177-
first))))
175+
(update-in cfg [:options :watch] (fnil into []) paths)))
178176

179177
(defn- optimize-opt
180178
[cfg level]

0 commit comments

Comments
 (0)