Fork me on GitHub
#figwheel-main
<
2021-03-01
>
Aleed22:03:49

how do you define development only code when building an app with figwheel-main? I had previously used a js/goog.DEBUG flag (https://clojureverse.org/t/how-to-deal-with-development-code-in-clojurescript/613) but with figwheel this variable seems to be true even when building optimized bundles

Aleed23:03:33

ah looks like I can override it myself with :closure-defines setting the 'goog/DEBUG value (before I was trying js/goog,DEBUG)