hey-listen icon indicating copy to clipboard operation
hey-listen copied to clipboard

Calls to this module should be wrapped with env check

Open Andarist opened this issue 7 years ago • 2 comments

I'm explaining this here - problem is that minifiers are not always smart enough to recognize that those functions are noop in production and that calls to them can be safely removed.

Andarist avatar May 18 '18 13:05 Andarist

Hey man thanks for opening this - for some reason I wasn't subscribed. I'll take a look.

mattgperry avatar Jul 01 '18 12:07 mattgperry

You could auto-wrap those with https://github.com/4Catalyzer/babel-plugin-dev-expression

Andarist avatar Jul 01 '18 21:07 Andarist