Skip to content

Commit 4375a63

Browse files
committed
CLJS-2586: cljs.main: Need to explicitly indicate node REPL environment when compiling with none
don't copy over :browser-repl from repl-env opts unless no target specified.
1 parent a352b33 commit 4375a63

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/clojure/cljs/cli.clj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,10 @@ present"
370370
(merge
371371
(when (and coptsf (.exists coptsf))
372372
(edn/read-string (slurp coptsf)))
373-
(select-keys env-opts [:target :browser-repl])
373+
(select-keys env-opts
374+
(cond-> [:target]
375+
(not (:target options))
376+
(conj :browser-repl)))
374377
options
375378
{:main main-ns}) opts
376379
(cond-> opts

0 commit comments

Comments
 (0)