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

Strip calls to warning() in __DEV__ #1122

Merged
merged 1 commit into from
Feb 18, 2014
Merged

Conversation

sophiebits
Copy link
Contributor

Fixes #1120.

@petehunt
Copy link
Contributor

I don't know how to pull this in since it has vendor changes. @zpao?

@zpao
Copy link
Member

zpao commented Feb 18, 2014

Already on it :P

console.warn('Warning: ' + format.replace(/%s/g, () => args[argIndex++]));
}
}
module.exports = emptyFunction;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, @petehunt's review: let's make this var warning = emptyFunction, then reassign warning in the __DEV__ check, and export once at the end. We should probably change invariant to match this style too.

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

Successfully merging this pull request may close these issues.

warning code shows up in min build
3 participants