-
Notifications
You must be signed in to change notification settings - Fork 463
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
Prevent export of $$default #4906
Comments
I had the same problem https://forum.rescript-lang.org/t/default-export-and-storybook-csf/527, used a workaround |
the compiler in general handles exports in a uniform way, so we got |
it's just weird that it creates an additional export, even though it already exports a clean default already. Would be nice if those additional $$ exports wouldn't happen in case there is a clean export, but I can see how this might make things more complicated. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@ryyppy here's a #6328 simple test of not emitting the I'd expect this to be fine, because you're never actually defining |
No matter if I am using an interface file or not, this code:
will emit following js:
Is there a way to prevent
$$default
to be exported? This messes with tools like Storybook, which iterates over the exports of a component.I assume this is required to be able to use values across ReScript modules?
The text was updated successfully, but these errors were encountered: