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

Support for ReScript in source-loader #18767

Open
Kingdutch opened this issue Jul 22, 2022 · 0 comments
Open

Support for ReScript in source-loader #18767

Kingdutch opened this issue Jul 22, 2022 · 0 comments

Comments

@Kingdutch
Copy link
Contributor

Is your feature request related to a problem? Please describe
Currently source-loader supports JavaScript, TypeScript and Flow. From what I understand the source-loader powers things like code-snippets as well as documentation provided from JSDoc annotations.

In my project I'm using ReScript which compiles to JavaScript. However, this causes source-loader to look at the compiled JavaScript which loses a lot of documentation and causes incorrect snippets.

Describe the solution you'd like
Ideally I'd like source-loader to support ReScript natively, but I can understand if the current ReScript community is deemed to be too small to have first-party support and maintenance.

I'd be happy to instead be able to swap in a different source loader but from what I understand there's currently no way to change that, so that may need to be built to support the use case.

Describe alternatives you've considered
I've not come up with any other ways to provide Storybook with the required information for correct snippets and component docblocks but I'd be happy if an existing way to do this in userland already exists.

Are you able to assist to bring the feature to reality?
Yes, I'd be happy to help implement this but the way data flows through Storybook from source-code to display in the various plugin is not clear enough for me to know where to start. I'd be looking for pointers on what parts of Storybook to modify.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant