Skip to content
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

fix(cli): add @mui/utils to the webpack singleton configuration #2633

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

christoph-jerolimov
Copy link
Member

The change looks a bit bigger because I extracted the configuration into a variable.

But actually, it just adds @mui/utils to the webpack federation configuration so that the app and the plugins share one version of that.

This might resolve some MUI v5 issues... Not 100% sure...

Because Backstage configures the class name generator from @mui/material/className like this:

https://github.com/backstage/backstage/blob/v1.35.0/packages/theme/src/unified/UnifiedThemeProvider.tsx#L49-L51

Which is then:

https://github.com/mui/material-ui/blob/v5.x/packages/mui-material/src/className/index.ts

=> https://github.com/mui/material-ui/blob/v5.x/packages/mui-utils/src/index.ts#L46

===> https://github.com/mui/material-ui/blob/v5.x/packages/mui-utils/src/ClassNameGenerator/ClassNameGenerator.ts

Copy link

changeset-bot bot commented Feb 6, 2025

🦋 Changeset detected

Latest commit: aeedcda

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@janus-idp/cli Minor

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

Signed-off-by: Christoph Jerolimov <jerolimov+git@redhat.com>
@christoph-jerolimov christoph-jerolimov force-pushed the webpack-make-mui-utils-singleton branch from ca9f3ed to aeedcda Compare February 6, 2025 17:04
@christoph-jerolimov christoph-jerolimov requested a review from a team as a code owner February 6, 2025 17:04
Copy link

sonarqubecloud bot commented Feb 6, 2025

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.

1 participant