chore: use [email protected]
[email protected] is out and allows resolving of imported types/proptypes and has no breaking changes (https://github.com/reactjs/react-docgen/releases/tag/v6.0.0-alpha.0). We want to explore this in https://github.com/eirslett/storybook-builder-vite/pull/167 any chance of releasing this dependency bump as an alpha to test the waters?
I think there may be additional work to get this to work, by default this new behavior is not enabled to be backwards compatible
we need to pass makeFsImporter to the parse method from what I understand
From the original PR
Made the "importer" configurable. It is passed as an argument to the parse method, but if using the defaultParse from main.js, it is an additional option that can be specified. This is to make everything backwards compatible.
@mscott2757 I've got a fork of this working here, would you be open to a PR back here with a similar implementation? Were you thinking that there would also need to be an option for the plugin to enable/disable the importer? or provide a different importer altogether?
Hi folks, just bumping this PR because we're maintaining a fork of the changes it makes over here. Are there any other changes to be considered at all other than the ones discussed so far?
I noticed that react-docgen is being actively developed again. The -alpha.0 was released over a year ago, but last month there were newer releases (with breaking changes).
Sounds like a good time to consider supporting 6.0 in storybook core.
And now 6.0 is out!