Join Slack
Powered by
Is there a way to have code that behave differentl...
# javascript
l
loke
04/13/2024, 5:01 PM
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.
r
Robert Jaros
04/13/2024, 7:10 PM
https://kotlinlang.slack.com/archives/C0B8L3U69/p1697645124333659
t
turansky
04/16/2024, 9:42 AM
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
loke
04/17/2024, 2:08 PM
Thanks for the help. I'll take a look.
2
Views
Open in Slack
Previous
Next