diff --git a/src/re_com/core.clj b/src/re_com/core.clj index 388b2a4f..9d9f9df1 100644 --- a/src/re_com/core.clj +++ b/src/re_com/core.clj @@ -37,7 +37,9 @@ ;; See explanation: https://re-com.day8.com.au/#/debug (defmacro at [] - (select-keys (meta &form) [:file :line])) + `(if-not ~(vary-meta 'js/goog.DEBUG assoc :tag 'boolean) + nil + ~(select-keys (meta &form) [:file :line]))) ;; Obtain the current component's component-name and args to be provided as a :debug-as argument to another component. ;; Causes the other component to masquerade in debug output, such as component stacks, as the current component in terms