-
-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
FIX error of load order when using configure in preview|config.js #10159
Conversation
… is doing, so they can be sorted correctly
Can you explain the idea here a bit more? |
preview & config can call |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is pretty gnarly
const isGenerated = /generated-(config|other)-entry/; | ||
const isGeneratedConfig = /(?:preview|config)\..+-generated-config-entry/; | ||
|
||
return stable(entries.slice(0), (a, b) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"preview & config can call configure which should always happen AFTER all global decorators & args are set." - better explanation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'm ok with this with better comment & cleanup the webpack. @tmeasday?
Ok yeah it makes sense to me. Let’s make sure in the code the reason for it is clear |
Is this code comment acceptable? |
'/Users/dev/Projects/GitHub/storybook/core/examples/web-components-kitchen-sink/.storybook/preview.js-generated-config-entry.js', | ||
]); | ||
}); | ||
it('should move stories-type all other generated entries', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is after missing from this sentence?
I think we need a bit more explanation. Something like:
|
fixed! |
see:
https://app.circleci.com/pipelines/github/storybookjs/storybook/7850/workflows/86d66710-5483-4d98-b590-c76aea8aec6a/jobs/203561
solution is related to: #9819