babel-plugin-add-react-displayname icon indicating copy to clipboard operation
babel-plugin-add-react-displayname copied to clipboard

Results 10 babel-plugin-add-react-displayname issues
Sort by recently updated
recently updated
newest added

I don't see any license declared for this, and no license file. Can one be decided on and added to the repository?

I am building my code using `@babel/preset-modules`, this plugin fails to parse on default exports without a class name when they're not being transformed by Babel. That is, components that...

Working example ``` function Comp() { return my comp } export default forwardRef(Comp) ``` Non-working example ``` function Comp() { return my comp } export default forwardRef(Comp)

minor clean up and refactoring

We went to babel7 a while ago, but we're just starting to use FunctionalComponents much more heavily, and as a result we're starting to see more `` in our component...

Thanks for releasing this plugin. I've added it to my build process and _most_ of the components in my tree are being assigned the `displayName` I would expect. However, there...

There are components that naturally have their displayName set as part of conventional best practice, like [an HOC](https://reactjs.org/docs/higher-order-components.html#convention-wrap-the-display-name-for-easy-debugging). In those cases the displayName added twice. Thankfully the autogenerated display name...

* fixing an issue where the displayname was not being added to functional components that returned conditionals Ex: If we have some functional component: ``` function MyComponent(props) { return props.someBoolean...

When component class is decorated current implementation sets displayName for outer component, it doesn't give displayName for original class and mess displayName for wrapper.

Hi, I cloned this repo and after running `npm install` I got the following error after running `npm test`: ``` > [email protected] test ~/src/localhost/sandbox/babel-plugin-add-react-displayname > mocha ~/src/localhost/sandbox/babel-plugin-add-react-displayname/node_modules/babel-core/lib/transformation/file/options/option-manager.js:334 throw e; ^...