-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[internals] remove dependency on @mui/system
#19062
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
packages/x-virtualizer/package.json
Outdated
"@babel/runtime": "^7.27.4", | ||
"@mui/x-internals": "workspace:*" | ||
"@babel/runtime": "^7.27.4" | ||
}, | ||
"peerDependencies": { | ||
"react": "^17.0.0 || ^18.0.0 || ^19.0.0", | ||
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0" | ||
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0", | ||
"@mui/x-internals": "workspace:*" |
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.
Why does it need to be in peer dependencies?
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.
Because it brings its own peer dependencies with it. It is easier to just pass it up to data-grid because that package also depends on x-internals.
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 don't see @mui/system
being used in @mui/x-internals
anymore. That dependency was introduced for the type import in this file, but that type import is gone now. If we remove @mui/system
from @mui/x-internals
peer dependencies, would that solve the issue?
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.
actually yes. That would solve it. I'll update the pr.
x-internals
to peerDependencies
x-internals
to peerDependencies
x-internals
to peerDependencies
@mui/system
Deploy preview: https://deploy-preview-19062--material-ui-x.netlify.app/ Bundle size report
|
closes #19061