Skip to content

Conversation

@vineethasok
Copy link
Collaborator

Upgrades Storybook and related dependencies from v9 to v10 in package.json and package-lock.json. Adds a workaround in .storybook/main.ts to resolve the 'mdx-react-shim' issue in Storybook 10.0.7 and suppresses related Rollup warnings during production builds.

Upgrades Storybook and related dependencies from v9 to v10 in package.json and package-lock.json. Adds a workaround in .storybook/main.ts to resolve the 'mdx-react-shim' issue in Storybook 10.0.7 and suppresses related Rollup warnings during production builds.
@vercel
Copy link

vercel bot commented Nov 15, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
click-ui Ready Ready Preview Comment Nov 15, 2025 4:53pm

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Upgrades Storybook and related dependencies from version 9 to version 10.0.7. The update includes a custom Vite plugin workaround to address an MDX React shim resolution bug present in Storybook 10.0.7, which generates malformed file:// imports for MDX files.

  • Updated all Storybook-related packages from ^9.0.18 to ^10.0.7
  • Added viteFinal configuration in main.ts to intercept and resolve mdx-react-shim imports
  • Added onwarn handler to suppress mdx-react-shim warnings in production builds

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
package.json Updates Storybook core packages, addons, chromatic, and related plugins to version 10.0.7
.storybook/main.ts Implements viteFinal hook with custom Vite plugin to fix MDX shim resolution and suppress related warnings

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@vineethasok vineethasok merged commit 205889a into main Nov 17, 2025
6 checks passed
@vineethasok vineethasok deleted the update-storybook branch November 17, 2025 14:08
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.

3 participants