-
Couldn't load subscription status.
- Fork 7
Support Webpack-based frameworks, require Storybook 10.1 #36
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
Conversation
🦋 Changeset detectedLatest commit: 031169f The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
commit: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR migrates the addon from Vite-specific middleware to the new experimental_devServer preset property, enabling support for Webpack-based frameworks (Next.js, react-webpack5) while maintaining Vite compatibility. It requires Storybook 10.1+ (currently available as a canary).
Key Changes
- Replaces Vite plugin workaround with
experimental_devServerpreset hook - Updates minimum Storybook version requirement from 9.0 to 10.1 (canary)
- Adds Webpack-based framework support (Next.js, react-webpack5)
Reviewed Changes
Copilot reviewed 7 out of 8 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
pnpm-workspace.yaml |
Adds Storybook canary versions to catalog, removes comment sections |
packages/addon-mcp/src/preset.ts |
Replaces viteFinal Vite plugin with experimental_devServer preset hook |
packages/addon-mcp/package.json |
Updates peer dependency to use catalog version instead of semver range |
packages/addon-mcp/README.md |
Updates documentation to reflect Webpack support and new version requirement |
apps/internal-storybook/package.json |
Updates dev dependencies to use catalog versions |
apps/internal-storybook/.storybook/main.ts |
Corrects story directory path |
.changeset/dark-eagles-argue.md |
Documents breaking change and version requirement |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
This PR migrates to using the new
experimental_devServerpreset property introduced in storybookjs/storybook#32816 . It also means that it now requires Storybook versions that has that property, which currently are only canaries.I manually tested that this worked both with Vite and Webpack, by modifying the Storybook in this reop.