Skip to content

Commit e6f37a0

Browse files
author
dnolen
committed
CLJS-1350: Compiler support for browser REPL
Now that :preloads exists, this is simple to support
1 parent 0a3834a commit e6f37a0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/clojure/cljs/closure.clj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1868,7 +1868,9 @@
18681868
(into {}
18691869
(map (fn [[k v]]
18701870
[(if (symbol? k) (str (comp/munge k)) k) v])
1871-
(:closure-defines opts)))))
1871+
(:closure-defines opts))))
1872+
(:browser-repl opts)
1873+
(update-in [:preloads] (fnil conj []) 'clojure.browser.repl.preload))
18721874
{:keys [libs foreign-libs externs]} (get-upstream-deps)
18731875
emit-constants (or (and (= optimizations :advanced)
18741876
(not (false? (:optimize-constants opts))))

0 commit comments

Comments
 (0)