Permalink
Browse files

Merge pull request #295 from hura/patch-1

New compiler flag :elide-asserts documentation
  • Loading branch information...
cemerick committed Feb 12, 2014
2 parents 7fa9f26 + c015c07 commit 2bd8f6ea5ab549923bc57bb397de575225311042
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 2bd8f6e

Please sign in to comment.