chore: migrate demo Storybook from webpack5 to vite#103
Merged
Conversation
Swap the dogfooding Storybook's framework from @storybook/react-webpack5 to @storybook/react-vite. Drops the webpack5 swc compiler addon and the @swc/core / swc-loader devDeps; adds vite as a peer for the new framework. The addon itself ships only manager-side code (dist/manager.js) so this is purely a dev-ergonomics change with no impact on consumers — the local-preset.js managerEntries hook continues to load the built manager bundle as before.
|
DanWebb
approved these changes
Apr 30, 2026
|
🎉 This PR is included in version 8.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
@storybook/react-webpack5→@storybook/react-vite.@storybook/addon-webpack5-compiler-swc,@swc/core, andswc-loader; addvite(peer of@storybook/react-vite)..storybook/main.jsframework name and remove the swc compiler addon entry.dist/manager.js), so this is purely a dev-ergonomics change with no consumer impact. ThemanagerEntrieshook in .storybook/local-preset.js is a Storybook preset API and is builder-agnostic, so it continues to load the built manager bundle as before.chore:prefix so semantic-release will not cut a version on merge.Test plan
npm installsucceeds andprepare(tsup) still buildsdist/manager.js.npm run build-storybooksucceeds — vite 7.3.2 builds preview, manager bundle includes the addon.npm run storybook(storybook dev) serves on its port and returns 200.