-
-
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
Add renderer
field to frameworks, and use to drive v6 store entrypoints
#19595
Add renderer
field to frameworks, and use to drive v6 store entrypoints
#19595
Conversation
No longer try and do docs-page manager side.
Also ensure that the ClientAPI calculates the index correctly
…om/sb-732-docs2-support-docs-only-stories-in-v6
@shilman I'm seeing this error in the build process (for both v6+v7 SB's) (not sure why we didn't see it before): I think it's because the magic "preview.js" handling isn't applying to these presets. |
…om/sb-732-docs2-support-docs-only-stories-in-v6
…om/sb-732-docs2-support-docs-only-stories-in-v6
const frameworkInitEntry = path.resolve( | ||
path.join(workingDir, 'storybook-init-framework-entry.js') | ||
); | ||
virtualModuleMapping[frameworkInitEntry] = `import '${frameworkName}';`; | ||
virtualModuleMapping[frameworkInitEntry] = `import '${rendererName}';`; |
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.
Should this be rendererInitEntry
?
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.
OK
…ocs-only-stories-in-v6 Add new SET_INDEX event
Telescoping on #19594
Issue: v6 store needs to import various client APIs from the renderer not the framework.
What I did
getRendererName
What I didn't do:
How to test
Run a sandbox in v6 mode, should work.