Permalink
Browse files

New compiler flag :elide-asserts documentation

  • Loading branch information...
1 parent 7fa9f26 commit c015c07bae560817ff528489ee2fc5997e084680 @hura hura committed Feb 12, 2014
Showing with 5 additions and 0 deletions.
  1. +5 −0 sample.project.clj
View
@@ -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

0 comments on commit c015c07

Please sign in to comment.