Skip to content

Commit 19c1445

Browse files
committed
if no :optimizations setting applied, default to :none
1 parent 3fffee0 commit 19c1445

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/clj/cljs/closure.clj

+3-1
Original file line numberDiff line numberDiff line change
@@ -1321,7 +1321,9 @@ should contain the source for the given namespace name."
13211321
(update-in [:preamble] #(into (or % []) ["cljs/imul.js"])))
13221322
(:target opts)
13231323
(assoc-in [:closure-defines "cljs.core.target"]
1324-
(name (:target opts))))))
1324+
(name (:target opts)))
1325+
(nil? (:optimizations opts))
1326+
(assoc :optimizations :none))))
13251327

13261328
(defn build
13271329
"Given a source which can be compiled, produce runnable JavaScript."

0 commit comments

Comments
 (0)