-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[lab] Remove @mui/base dependency #45602
Conversation
…ve-base-dependency
Netlify deploy previewhttps://deploy-preview-45602--material-ui.netlify.app/ Bundle size reportDetails of bundle changes (Toolpad) |
@@ -1,5 +1,5 @@ | |||
'use client'; | |||
import { unstable_composeClasses as composeClasses } from '@mui/base'; | |||
import composeClasses from '@mui/utils/composeClasses'; |
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.
Using the same import as in @mui/material.
@@ -1 +1 @@ | |||
export { useAutocomplete as default } from '@mui/base'; | |||
export { default } from '@mui/material/useAutocomplete'; |
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.
The hook was already copied in @mui/material when we were removing the @mui/base dependency from there. Here, we are just changing the location of where we re-export.
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.
🧹
@mnajdova can you add a short PR description? |
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.
Looks good.
Yep, done 👌 |
This PR removes the legacy @mui/base dependency in @mui/lab. This was missed when we were removing the @mui/base from the other @mui/* packages. The changes done replicate what was done in the @mui/material package.
We can now safely remove the packages/mui-base code and leave it only in the v6.x branches (we stopped releasing @mui/base from the main branch some time ago).