In SB6, why does using react-docgen-typescript
default to .mjs/.jsx extensions but not .tsx?
#12537
Unanswered
brandonheyer
asked this question in
Help
Replies: 1 comment
-
No bug here AFAICT. This line says that if you've set It's possible what you're seeing is some bug in |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As the title says, any idea why the default setting for
reactDocgen = 'react-cogent-typescript'
excludes .tsx files as seen here:storybook/app/react/src/server/framework-preset-react-docgen.ts
Line 17 in ea341b5
That seems like a huge oversight, if I change the config manually via:
It pulls in the description of the .tsx component correctly. Any insight into this decision would be great, I want to make sure I'm leveraging as much default behavior as possible.
Beta Was this translation helpful? Give feedback.
All reactions