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

Add support for module exports #44

Merged

Conversation

NikhilVerma
Copy link

@NikhilVerma NikhilVerma commented Feb 26, 2018

This PR adds basic support for module.exports which will generate docgen info for CommonJS modules.

At Badoo we are building our own design system UI, however we currently use CommonJS modules and it means that we can't use babel-plugin-react-docgen yet.

I have added some tests as well. Please note that with existing package.json some other unit tests are failing for me, I had to upgrade docgen to get them to pass however probably it's not the right place for this PR.

Copy link
Member

@danielduan danielduan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution!

@danielduan danielduan merged commit 88622b9 into storybookjs:master Feb 26, 2018
@danielduan
Copy link
Member

@NikhilVerma published as 1.8.3

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 this pull request may close these issues.

None yet

2 participants