Skip to content

Commit 3e922aa

Browse files
committed
default :lite-mode to :elide-to-string?
1 parent 7c718ad commit 3e922aa

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/main/clojure/cljs/closure.clj

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2532,8 +2532,12 @@
25322532
(update-in [:preamble] #(into (or % []) ["cljs/imul.js"]))
25332533

25342534
(:lite-mode opts)
2535-
(assoc-in [:closure-defines (str (comp/munge 'cljs.core/LITE_MODE))]
2536-
(:lite-mode opts))
2535+
(->
2536+
(assoc-in [:closure-defines (str (comp/munge 'cljs.core/LITE_MODE))]
2537+
(:lite-mode opts))
2538+
(merge
2539+
(when-not (contains? opts :elide-to-string)
2540+
{:elide-to-string true})))
25372541

25382542
(:target opts)
25392543
(assoc-in [:closure-defines (str (comp/munge 'cljs.core/*target*))]

0 commit comments

Comments
 (0)