Skip to content

Commit 8cebc32

Browse files
mfikesswannodette
authored andcommitted
CLJS-2685: cljs.main: Using watch breaks browser loading
1 parent bbac9ec commit 8cebc32

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/clojure/cljs/cli.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,8 @@ present"
459459
cenv (env/default-compiler-env)]
460460
(env/with-compiler-env cenv
461461
(if-let [path (:watch opts)]
462-
(when-not repl?
462+
(if repl?
463+
(build/build source opts cenv)
463464
(build/watch path opts cenv))
464465
(build/build source opts cenv))
465466
(when repl?

0 commit comments

Comments
 (0)