Is there a way to have code that behave differentl...
# javascript
l
Is there a way to have code that behave differently in developer mode and a production build? Specifically, I want to add some debug features that should only be included in the debug builds.
t
If you use bundlers after - you can use "IS DEBUG" constant(s) and write code in
if
blocks. This solution has bonus - you can write debug code in your libraries.
l
Thanks for the help. I'll take a look.