-
-
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
Core: Add preview.js
default export support
#21227
Conversation
b7cc2d3
to
2ca966c
Compare
6050b8e
to
daeb65f
Compare
daeb65f
to
9b6b6b4
Compare
preview.js
default export support
argTypes: { x: '2', z: '2', obj: { a: '2', c: '2' } }, | ||
globals: { x: '2', z: '2', obj: { a: '2', c: '2' } }, | ||
globalTypes: { x: '2', z: '2', obj: { a: '2', c: '2' } }, | ||
default: { |
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.
Could you add a case where this is mixed? We are composing configs that could come from users, addons, presets and frameworks, which will definitely be mixed and the composing of it all should work correctly
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.
Will do once CI finishes & merge
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.
It's all good – I tested that and added a telescoping PR for after we merge this: #21230
…econfig-test-case Build: Add mixed exports test case to composeConfigs
…to rollback-preview-ts-template
Edit: nevermind, it's all good! Hey @tmeasday if you have time, could you assist in getting Storybook in storyStoreV6 to support preview.js files that contain a default export?
|
This was breaking the vue-cli templates and seems to be purely for pnp purposes: https://github.com/storybookjs/storybook/pull/21046/files#diff-76aad599d2311ab4fec53db693f2e85d4cb7f798cc37357dfe7839997caef2ba
cef776d
to
70a9e93
Compare
Make sure that users can use export default in a
preview.ts/js
file as well, as alternative of named exports.