Skip to content

Commit a8a75c8

Browse files
committed
don't add the imul.js preamble in lite-mode
1 parent 075edcc commit a8a75c8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/clojure/cljs/closure.clj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2525,8 +2525,10 @@
25252525
:ups-foreign-libs (expand-libs foreign-libs)
25262526
:ups-externs externs
25272527
:emit-constants emit-constants
2528-
:cache-analysis-format (:cache-analysis-format opts :transit))
2529-
(update-in [:preamble] #(into (or % []) ["cljs/imul.js"])))
2528+
:cache-analysis-format (:cache-analysis-format opts :transit)))
2529+
2530+
(not (:lite-mode opts))
2531+
(update-in [:preamble] #(into (or % []) ["cljs/imul.js"]))
25302532

25312533
(:lite-mode opts)
25322534
(assoc-in [:closure-defines (str (comp/munge 'cljs.core/LITE_MODE))]

0 commit comments

Comments
 (0)