Skip to content

Commit badf3cd

Browse files
committed
cljs.closure/add-implicit-options add the implicit options for
:optimizations :advanced
1 parent 18bb41f commit badf3cd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/clj/cljs/closure.clj

+6-1
Original file line numberDiff line numberDiff line change
@@ -1353,7 +1353,12 @@ should contain the source for the given namespace name."
13531353
(= optimizations :none)
13541354
(assoc
13551355
:cache-analysis (:cache-analysis opts true)
1356-
:source-map (:source-map opts true)))))
1356+
:source-map (:source-map opts true))
1357+
1358+
(= optimizations :advanced)
1359+
(cond->
1360+
(not (false? (:static-fns opts))) (assoc :static-fns true)
1361+
(not (false? (:optimize-constants opts))) (assoc :optimize-constants true)))))
13571362

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

0 commit comments

Comments
 (0)