Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calls to this module should be wrapped with env check #1

Open
Andarist opened this issue May 18, 2018 · 2 comments
Open

Calls to this module should be wrapped with env check #1

Andarist opened this issue May 18, 2018 · 2 comments

Comments

@Andarist
Copy link

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.

@mattgperry
Copy link
Owner

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

@Andarist
Copy link
Author

Andarist commented Jul 1, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants