-
Notifications
You must be signed in to change notification settings - Fork 25
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
Hover Container dependence on child.type breaks behavior when minified #29
Comments
@stevemao @shineli1984 |
minifier will only change variable names, not object field name. Can you supply any example when it fails? |
Default create-react-app uglify settings are sufficient to reproduce
|
I may have miss understood your problem. What exactly is the problem? Stating details of what's expected and what's reality should help. |
@sam-son This issue seems valid, we need think about a way to preserve the type not being minified. |
@cht8687 I don't think minify is supposed to do that to files in node_modules, so I don't think this is a real issue. |
https://github.com/cht8687/react-hover/blob/master/src/ReactHover.js#L45
if child.type is manipulated by uglify or other minifier, hover behavior fails.
The text was updated successfully, but these errors were encountered: