Skip to content

Commit

Permalink
cljs.closure/add-implicit-options add the implicit options for
Browse files Browse the repository at this point in the history
:optimizations :advanced
  • Loading branch information
swannodette committed Mar 16, 2015
1 parent 18bb41f commit badf3cd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/clj/cljs/closure.clj
Original file line number Diff line number Diff line change
Expand Up @@ -1353,7 +1353,12 @@ should contain the source for the given namespace name."
(= optimizations :none)
(assoc
:cache-analysis (:cache-analysis opts true)
:source-map (:source-map opts true)))))
:source-map (:source-map opts true))

(= optimizations :advanced)
(cond->
(not (false? (:static-fns opts))) (assoc :static-fns true)
(not (false? (:optimize-constants opts))) (assoc :optimize-constants true)))))

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

0 comments on commit badf3cd

Please sign in to comment.