dumper.js icon indicating copy to clipboard operation
dumper.js copied to clipboard

How to use development vs production

Open eric-naguras opened this issue 6 years ago • 1 comments
trafficstars

Hi, Thanks for making this handy module.

But something is unclear to me, how to use this in development vs production?

You advice to add this module to the dev dependencies. But what happens in production where the dev modules are not available? Wouldn't the code crash because the module cannot be found?

What would be the best way of handling this?

Cheers.

eric-naguras avatar Feb 08 '19 03:02 eric-naguras

@eric-naguras I think this should be global constant just like console.log and there should be linter that will avoid using dd so we wont accidentally push to production / version control right?

shirshak55 avatar Mar 06 '20 10:03 shirshak55