-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
[examples] Fix Pigment CSS Vite example #44074
Conversation
Netlify deploy previewhttps://deploy-preview-44074--material-ui.netlify.app/ Bundle size report |
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.
I would assume that people that are trying this are migrating existing projects, this is why likely no one reported it.
The initial thought was that with v6, we want to ensure Material UI users that they are safe to try using Pigment CSS and there won't be breaking changes if they do. The only way to do this and at the same time allow us to iterate on the Pigment CSS API itself was with a wrapper package. However, since then, we realized that likely Pigment CSS is anyway not ready for production and started referring to it as an experimental API people can try. After this, honestly there is not much value in the wrapper package from this point of view. However, if I remember correctly, we discussed with @brijeshb42 that we want to change some of the behavior/APIs that Pigment CSS support, but keep the old APIs for Mateiral UI users as they would otherwise have breaking changes. The only way to do this was with a wrapper package. The way I see this in correlation with the previous setup is:
The decision of keeping the package or removing is mostly related to what APIs we plan to have in @pigment-css/react and how close/far they are from the APIs we want to keep in Material UI. I will let @brijeshb42 answer too, but these are my thoughts on the matter. |
+1 to what @mnajdova said. The wrapper package is only a means to an end and will probably be there till before v7 since the |
I wanted to try Pigment CSS with Vite and this is the error I got.
This has been broken with v6.0.0 release, so 6-7 weeks ago. I imagine the Pigment CSS team is responsible for this example.
I'm surprised I'm the first one to work on this. Like, how comes not even community's members faced this? It would mean that nobody uses this example, but then Vite is super popular, so it would mean nobody wants to try Pigment CSS which also doesn't make sense. I'm missing something. Maybe it's that +99% of the people are migrating applications, so nobody can use this example right away, only people who want to create bug reproductions use it today (until it's stable).
Side notes:
I think I raised this in the past, I don't understand why
@mui/material-pigment-css
exists. I'm trying to think of a permutations that would explain it, but I can't connect the dots:How about we remove this package?