You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When I'm using the react-docgen plugin to auto generate controls for my stories I don't have access to any prop types that's imported from external modules. I'm using React Aria to build my UI library and a lot of the props are already exported by them so I don't want to have to duplicate them in my own components just to make Storybook pick them up.
Describe the solution you'd like
When using the react-docgen-typescript plugin we can use the reactDocgenTypescriptOptions to configure it. Could we expose a similar reactDocgenOptions to configure the react-docgen plugin?
Particularly I'm interested in removing the default exclusion of node_modules here:
I tried to configure the viteFinal option in main.ts to update the plugin, but couldn't get it to work and the react-docgen plugin is not exposed in the @storybook/react-vite package it seems, so no easy way to replace the plugin without recreating it from scratch.
Are you able to assist to bring the feature to reality?
yes, I can
Additional context
Not sure of the best way to tackle this as I'm not too sure of the inner workings of Storybook, but I'm willing to attempt to fix the issue if it's something you believe will fix the issue and improve the project.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is your feature request related to a problem? Please describe.
When I'm using the
react-docgen
plugin to auto generate controls for my stories I don't have access to any prop types that's imported from external modules. I'm using React Aria to build my UI library and a lot of the props are already exported by them so I don't want to have to duplicate them in my own components just to make Storybook pick them up.Describe the solution you'd like
When using the
react-docgen-typescript
plugin we can use thereactDocgenTypescriptOptions
to configure it. Could we expose a similarreactDocgenOptions
to configure thereact-docgen
plugin?Particularly I'm interested in removing the default exclusion of
node_modules
here:storybook/code/frameworks/react-vite/src/plugins/react-docgen.ts
Line 37 in 70e70e7
Describe alternatives you've considered
I tried to configure the
viteFinal
option inmain.ts
to update the plugin, but couldn't get it to work and thereact-docgen
plugin is not exposed in the@storybook/react-vite
package it seems, so no easy way to replace the plugin without recreating it from scratch.Are you able to assist to bring the feature to reality?
yes, I can
Additional context
Not sure of the best way to tackle this as I'm not too sure of the inner workings of Storybook, but I'm willing to attempt to fix the issue if it's something you believe will fix the issue and improve the project.
Beta Was this translation helpful? Give feedback.
All reactions