-
Notifications
You must be signed in to change notification settings - Fork 93
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
Doesn't hoist static #29
Comments
Very likely Babel/ES6 is not making static method enumerable. Perhaps this is something that this package cannot work without some configuration from babel: https://babeljs.io/docs/plugins/transform-class-properties/ If so, some warning in the README would be appreciated. |
I am actively looking into this. I consider this a regression in 2.x. I will be adding support for static methods even if the spec and/or Babel does not make them enumerable. |
Thanks, confirmed that it works 👍 |
i'm on nextjs, this package doesn't hoist getInitialProps, which is a non react static method.
The text was updated successfully, but these errors were encountered: