Skip to content

Adding more info about framework key in main.js of .storybook in the Storybook docs #18102

Answered by shilman
qur786 asked this question in Documentation
Discussion options

You must be logged in to vote

In Storybook 6.x and below, each framework (e.g. @storybook/react) shipped its own start-storybook and build-storybook binaries. These binaries filled in a generic "core" with framework-specific webpack & babel settings.

In Storybook 7, we are transitioning to a model where you run the storybook CLI directly using (sb dev / sb build). The framework-specific settings will be provided by the framework field in .storybook/main.js.

Starting in Storybook 6.4, start-storybook/build-storybook will use the new codepath if framework is set, and will use the old codepath if it's not. Functionally, the two modes should be identical. That said, we're currently designing Storybook 7, and we will likel…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by qur786
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants