From 3e922aa1930247d6857bfeaa8e50033a3cc80339 Mon Sep 17 00:00:00 2001 From: davidnolen Date: Fri, 21 Nov 2025 10:21:24 -0500 Subject: [PATCH] default `:lite-mode` to `:elide-to-string?` --- src/main/clojure/cljs/closure.clj | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/clojure/cljs/closure.clj b/src/main/clojure/cljs/closure.clj index 05fa761aa..da8dafb6b 100644 --- a/src/main/clojure/cljs/closure.clj +++ b/src/main/clojure/cljs/closure.clj @@ -2532,8 +2532,12 @@ (update-in [:preamble] #(into (or % []) ["cljs/imul.js"])) (:lite-mode opts) - (assoc-in [:closure-defines (str (comp/munge 'cljs.core/LITE_MODE))] - (:lite-mode opts)) + (-> + (assoc-in [:closure-defines (str (comp/munge 'cljs.core/LITE_MODE))] + (:lite-mode opts)) + (merge + (when-not (contains? opts :elide-to-string) + {:elide-to-string true}))) (:target opts) (assoc-in [:closure-defines (str (comp/munge 'cljs.core/*target*))]