Skip to content

Loading…

New compiler flag :elide-asserts documentation #295

Merged
merged 1 commit into from
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 0 deletions.
  1. +5 −0 sample.project.clj
View
5 sample.project.clj
@@ -96,6 +96,11 @@
; The optimization level. May be :whitespace, :simple, or :advanced.
; Defaults to :whitespace.
:optimizations :whitespace
+ ; This flag will cause all (assert x) calls to be removed during compilation
+ ; Useful for production. Default is always false even in advanced compilation.
+ ; Does NOT specify goog.asserts.ENABLE_ASSERTS which is different and used by
+ ; the closure library.
+ :elide-asserts true
; Determines whether the JavaScript output will be tabulated in
; a human-readable manner. Defaults to true.
:pretty-print true
Something went wrong with that request. Please try again.