-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
[SB-1175] Migration: Main.js/Preview default exports #20554
Comments
@shilman are we expecting users to use const config: StorybookConfig = {
stories: [...]
}
export default config Also, is this for preview.js as well? I don't believe we have a type for that |
I think what you wrote is correct. For |
That sounds much better. We need a proper typing system that will also address addons, parameters, globalTypes, etc |
Have you considered using a helper like vite's |
ZOMG!! I just released https://github.com/storybookjs/storybook/releases/tag/v7.0.0-beta.38 containing PR #20797 that references this issue. Upgrade today to the
Closing this issue. Please re-open if you think there's still more to do. |
Is your feature request related to a problem? Please describe
We are moving to default exports for main.js and preview.js configuration. This is friendlier for TypeScript.
Before:
After:
Describe the solution you'd like
Default exports are already supported in SB7, but now we need to get users upgraded:
Describe alternatives you've considered
No response
Are you able to assist to bring the feature to reality?
no
Additional context
No response
From SyncLinear.com | SB-1175
The text was updated successfully, but these errors were encountered: