Skip to content

Commit 367e2fb

Browse files
committed
disable type checking if not provided
1 parent d4e0d9c commit 367e2fb

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/main/clojure/cljs/closure.clj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1908,7 +1908,10 @@
19081908
(= optimizations :advanced)
19091909
(cond->
19101910
(not (false? (:static-fns opts))) (assoc :static-fns true)
1911-
(not (false? (:optimize-constants opts))) (assoc :optimize-constants true)))))
1911+
(not (false? (:optimize-constants opts))) (assoc :optimize-constants true))
1912+
1913+
(nil? (find (:closure-warnings opts) :check-types))
1914+
(assoc-in [:closure-warnings :check-types] :off))))
19121915

19131916
(defn process-js-modules
19141917
"Given the current compiler options, converts JavaScript modules to Google

0 commit comments

Comments
 (0)