mirror of
https://github.com/penpot/penpot.git
synced 2025-07-31 22:08:31 +02: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]
|
[clojure.spec.alpha :as s]
|
||||||
[cuerdas.core :as str]))
|
[cuerdas.core :as str]))
|
||||||
|
|
||||||
|
(set! *assert* js/goog.DEBUG)
|
||||||
|
|
||||||
;; --- Auxiliar Functions
|
;; --- Auxiliar Functions
|
||||||
|
|
||||||
(s/def ::platform #{:windows :linux :macos :other})
|
(s/def ::platform #{:windows :linux :macos :other})
|
||||||
|
|
|
@ -65,15 +65,12 @@
|
||||||
;; Read initial enabled features from config, if set
|
;; Read initial enabled features from config, if set
|
||||||
(if-let [enabled-features @cfg/features]
|
(if-let [enabled-features @cfg/features]
|
||||||
(doseq [f enabled-features]
|
(doseq [f enabled-features]
|
||||||
(js/console.log "enabled feature" (pr-str f))
|
|
||||||
(toggle-feature! f))
|
(toggle-feature! f))
|
||||||
(when false
|
|
||||||
|
(when *assert*
|
||||||
;; By default, all features disabled, except in development
|
;; By default, all features disabled, except in development
|
||||||
;; environment, that are enabled except components-v2
|
;; environment, that are enabled except components-v2
|
||||||
;; (js/console.log "!!! *assert*" *assert*)
|
|
||||||
|
|
||||||
(doseq [f features-list]
|
(doseq [f features-list]
|
||||||
(when (not= f :components-v2)
|
(when (not= f :components-v2)
|
||||||
;; (js/console.log "enabled feature" (pr-str f))
|
|
||||||
(toggle-feature! f)))))
|
(toggle-feature! f)))))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue