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

Provide filename to the babel #81

Merged
merged 2 commits into from
Jan 15, 2020
Merged

Provide filename to the babel #81

merged 2 commits into from
Jan 15, 2020

Conversation

lttb
Copy link
Contributor

@lttb lttb commented Jan 12, 2020

There are some issues without that option (see https://babeljs.io/docs/en/options#filename), including problems with typescript too, that I faced with.

Should resolve #66

it's important to set all the necessary presets and plugins in the babel root config to avoid issues with react-docgen
@Mayank1791989
Copy link

Mayank1791989 commented Jan 14, 2020

@shilman @danielduan Can you please look into this PR. We are using babel overrides and for that also filename is required.

@danielduan
Copy link
Member

Was a bit confused why a filename is necessary until I saw this: https://github.com/reactjs/react-docgen#-filename

looks good to me

@danielduan danielduan merged commit c5cdb46 into storybookjs:master Jan 15, 2020
@danielduan
Copy link
Member

published as v4.1.0

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.

Does not work with class Components
3 participants