Closed
Description
When its used:
- error messages
- dev tools
- HOCs
I would argue that its valuable only in DEV
mode. Even when it comes to error messages I think I've never seen any production log containing it, I cannot be sure though if it never is.
And if its valuable only in DEV mode, shouldnt we just ditch adding them (or write a ditching transform/codemod) as they can be inferred from the functions/classes/variables anyway? The only remaining use case would be using displayName
for HOCs.
If Im wrong let me know. This would however fix 2 minor problems:
- smaller build outputs (slightly)
- remove problem of unintentionally preventing tree-shaking of SFCs in flat bundles (more can be read here)
Metadata
Metadata
Assignees
Labels
No labels