Skip to content
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

Upgrade to storybook 7.4.1. #368

Merged
merged 1 commit into from
Sep 14, 2023
Merged

Upgrade to storybook 7.4.1. #368

merged 1 commit into from
Sep 14, 2023

Conversation

richardxia
Copy link
Member

Refs #365.

This was mostly turnkey, since Storybook provides a command for automatically upgrading and even updating configuration files.

One manual change that was necessary was to update the Storybook webpack configuration, which was described in terms of patching the existing webpack configuration. The patched rule changed from array index 0 to 2, so we had to update the indexes in our webpack configuration. This matches the changes described in
storybookjs/storybook#22065 (comment)

The biggest benefit of making this change is that it removes webpack 4 from our dependencies list. Although we had configured Storybook 6 to use webpack 5, some of Storybook's dependencies still pulled in webpack 4. Now that we've upgraded to Storybook 7, every framework we use now uses webpack 5.

Copy link

@schroerbrian schroerbrian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Base automatically changed from fix-storybook-after-gatsby-v4-upgrade to main September 14, 2023 02:40
This was mostly turnkey, since Storybook provides a command for
automatically upgrading and even updating configuration files.

One manual change that was necessary was to update the Storybook webpack
configuration, which was described in terms of patching the existing
webpack configuration. The patched rule changed from array index 0 to 2,
so we had to update the indexes in our webpack configuration. This
matches the changes described in
storybookjs/storybook#22065 (comment)
@richardxia richardxia enabled auto-merge (squash) September 14, 2023 02:43
@richardxia richardxia merged commit f4aed6f into main Sep 14, 2023
2 checks passed
@richardxia richardxia deleted the 365-upgrade-storybook branch September 14, 2023 02:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants