Repository navigation
Conversation
|
This is actually the preferred style for |
414abcd to
3f61750
Compare
|
The airbnb style guide doesnt take into account class properties (yet I guess). It advise to put statics at the top of your class declaration, but according to es2015 its possible to have only static methods, not properties. So to put things like However keeping them like this will prevent proper tree-shaking in the (hopefully near) future. Related issues - babel/babel#5632 (comment) and babel/babel#5902 |
|
Well, no, it also makes it less onerous when changing things around between component classes and functions. Like, without smarter heuristics, not being able to tree-shake functional components still seems pretty broken. |
|
Ok, I get your point about bigger ease when transforming between class and a function. Didnt think about it before. However still the mentioned components (from the |
It is, #77 provides This might be covered by webpack@4 though (thanks to That being said this change alone won't improve tree-shakeability because of the things described here. It's a starter though that could allow babel in the future (hopefully I will get this feature into upcoming |
|
I wanted to fully understand this, but it's a bit out my league for now. 😅 In any case, I see no reason not to add this. It won't affect maintainability in any way and users can only benefit from it. Could you please rebase/resolve these changes and make sure that:
|
No description provided.