π€ feat: upgrade Storybook to v10.0.0 #473
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Upgraded Storybook from 8.6.14 β 10.0.0 using automated migration.
Benefits
Changes
Package Updates
storybook: 8.6.14 β 10.0.0@storybook/react-vite: 8.6.14 β 10.0.0@storybook/addon-links: 8.6.14 β 10.0.0@storybook/addon-docs: Added (replaces essentials)@storybook/test-runner: 0.23.0 β 0.24.0eslint-plugin-storybook: Added for better lintingRemoved packages (functionality merged into core):
@storybook/addon-essentials(merged into addon-docs)@storybook/addon-interactions(merged into core)@storybook/blocks(merged into core)@storybook/react(use react-vite instead)Code Changes
@storybook/reactβ@storybook/react-viteConfig Changes
.storybook/main.tsaddons (essentials β docs).storybook/preview.tsximportTesting
β Dev server:
make storybookstarts successfullyβ Static build:
make storybook-buildcompletes without errorsβ Type checking:
make typecheckpassesβ All stories render: Verified all 23+ story files updated correctly
Breaking Changes
ESM-Only
Storybook 10 drops CommonJS support entirely.
Impact on cmux: β None - We're already using ESM everywhere in Storybook config and stories.
Migration Details
Used Storybook's automated migration tool:
The tool automatically:
Only manual fix needed:
GitStatusIndicatorView.stories.tsxmeta type for stricter v10 type checkingCompatibility
Generated with
cmux