Skip to content
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

Cannot define custom resolver #82

Closed
km1790 opened this issue Mar 14, 2020 · 1 comment · Fixed by #88
Closed

Cannot define custom resolver #82

km1790 opened this issue Mar 14, 2020 · 1 comment · Fixed by #88

Comments

@km1790
Copy link

km1790 commented Mar 14, 2020

I need to define custom resolver, but it only allows to pick between

  • findAllComponentDefinitions
  • findExportedComponentDefinition
  • findAllExportedComponentDefinitions

It should be like handler, where we can define custom resolver and require should take care of it.

I believe it can be easily accomplished by modifying:

resolver = ReactDocgen.resolver[state.opts.resolver];

@km1790
Copy link
Author

km1790 commented Mar 14, 2020

I have forked it for now and made the change.
But looking forward to see if it can be merged with your repo.

https://github.com/km1790/babel-plugin-react-docgen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant