0
Fork 0
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:
Andrey Antukh 2022-12-01 09:31:38 +01:00
parent a4acdd1886
commit dff4552549
2 changed files with 4 additions and 5 deletions

View file

@ -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})

View file

@ -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)))))