Add :elide-asserts compiler option for release builds

Removes all asserts calls including :pre and :post condition checks
https://cljs.github.io/api/compiler-options/elide-asserts

Signed-off-by: Dmitry Novotochinov <trybeee@gmail.com>
This commit is contained in:
Dmitry Novotochinov 2018-03-13 20:04:04 +03:00
parent a26aa92327
commit ed7176d65c
No known key found for this signature in database
GPG Key ID: 267674DCC86628D9
1 changed files with 2 additions and 0 deletions

View File

@ -87,6 +87,7 @@
:optimizations :simple :optimizations :simple
:closure-defines {"goog.DEBUG" false} :closure-defines {"goog.DEBUG" false}
:parallel-build false :parallel-build false
:elide-asserts true
:language-in :ecmascript5} :language-in :ecmascript5}
:warning-handlers [status-im.utils.build/warning-handler]} :warning-handlers [status-im.utils.build/warning-handler]}
:android :android
@ -99,5 +100,6 @@
:optimizations :simple :optimizations :simple
:closure-defines {"goog.DEBUG" false} :closure-defines {"goog.DEBUG" false}
:parallel-build false :parallel-build false
:elide-asserts true
:language-in :ecmascript5} :language-in :ecmascript5}
:warning-handlers [status-im.utils.build/warning-handler]}}}}}) :warning-handlers [status-im.utils.build/warning-handler]}}}}})