Skip to content

chore: migrate demo Storybook from webpack5 to vite#103

Merged
mergify[bot] merged 4 commits into
mainfrom
chore/storybook-vite
Apr 30, 2026
Merged

chore: migrate demo Storybook from webpack5 to vite#103
mergify[bot] merged 4 commits into
mainfrom
chore/storybook-vite

Conversation

@gavmck

@gavmck gavmck commented Apr 30, 2026

Copy link
Copy Markdown
Member

Summary

  • Swap the dogfooding Storybook from @storybook/react-webpack5@storybook/react-vite.
  • Drop @storybook/addon-webpack5-compiler-swc, @swc/core, and swc-loader; add vite (peer of @storybook/react-vite).
  • Update .storybook/main.js framework name and remove the swc compiler addon entry.
  • The addon itself ships only manager-side code (dist/manager.js), so this is purely a dev-ergonomics change with no consumer impact. The managerEntries hook 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 install succeeds and prepare (tsup) still builds dist/manager.js.
  • npm run build-storybook succeeds — vite 7.3.2 builds preview, manager bundle includes the addon.
  • npm run storybook (storybook dev) serves on its port and returns 200.
  • Visual smoke test in a browser: confirm the Status toolbar pill and sidebar dots still render on the demo stories. (Not run from the agent — please verify locally before merging.)

gavmck added 4 commits April 30, 2026 05:31
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.
@sonarqubecloud

Copy link
Copy Markdown

@mergify mergify Bot merged commit b150604 into main Apr 30, 2026
9 checks passed
@mergify mergify Bot deleted the chore/storybook-vite branch April 30, 2026 09:35
@github-actions

github-actions Bot commented May 1, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 8.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants