Adding more info about framework
key in main.js of .storybook in the Storybook docs
#18102
-
In my company we are using storybook to build and test react components. So we have set it up in few of our repository, configuring the storybook through |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
In Storybook 6.x and below, each framework (e.g. In Storybook 7, we are transitioning to a model where you run the storybook CLI directly using ( Starting in Storybook 6.4, I hope that's a helpful explanation! |
Beta Was this translation helpful? Give feedback.
In Storybook 6.x and below, each framework (e.g.
@storybook/react
) shipped its ownstart-storybook
andbuild-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 theframework
field in.storybook/main.js
.Starting in Storybook 6.4,
start-storybook
/build-storybook
will use the new codepath ifframework
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…