mirror of
https://github.com/penpot/penpot.git
synced 2026-02-28 07:14:51 +00:00
🐛 Set runtime *assert* value to false on release build
This commit is contained in:
@@ -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)))))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user