utils/devOnly

this module contains helpers which are only to be use in development mode every function define in this file must wrap all the code in a development check env for dead code elimination see `template` function for better understanding
Author:
  • Aamir khan

Members

static, constant makeLog

while working on a module/bug we always need to log something then add filters to the console to figure out which log is ours this HOF will make it easy to do that and it will be silent in build
Author:
  • Aamir khan
Example
const log = makeLog('AYSW')

/// now use it anywhere like a log

log('setting up events') 👉 AYSW setting up events