mirror of
https://github.com/penpot/penpot.git
synced 2025-02-24 07:46:13 -05:00
🐛 Set runtime *assert* value to false on release build
This commit is contained in:
parent
a4acdd1886
commit
dff4552549
2 changed files with 4 additions and 5 deletions
|
@ -17,6 +17,8 @@
|
|||
[clojure.spec.alpha :as s]
|
||||
[cuerdas.core :as str]))
|
||||
|
||||
(set! *assert* js/goog.DEBUG)
|
||||
|
||||
;; --- Auxiliar Functions
|
||||
|
||||
(s/def ::platform #{:windows :linux :macos :other})
|
||||
|
|
|
@ -65,15 +65,12 @@
|
|||
;; Read initial enabled features from config, if set
|
||||
(if-let [enabled-features @cfg/features]
|
||||
(doseq [f enabled-features]
|
||||
(js/console.log "enabled feature" (pr-str f))
|
||||
(toggle-feature! f))
|
||||
(when false
|
||||
|
||||
(when *assert*
|
||||
;; By default, all features disabled, except in development
|
||||
;; environment, that are enabled except components-v2
|
||||
;; (js/console.log "!!! *assert*" *assert*)
|
||||
|
||||
(doseq [f features-list]
|
||||
(when (not= f :components-v2)
|
||||
;; (js/console.log "enabled feature" (pr-str f))
|
||||
(toggle-feature! f)))))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue