-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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 resolution of @mui/material-ui in docs #43108
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -98,8 +98,14 @@ export default withDocsInfra({ | |
...config.resolve.alias, | ||
|
||
// for 3rd party packages with dependencies in this repository | ||
'@mui/material$': path.resolve(workspaceRoot, 'packages/mui-material/src/index.js'), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm confused:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Yes, but they're supposed to work, so I left this fix in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So the fix actually works but this PR includes the changed imports as they're recommended, is that correct? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually, just remember I didn't remove all instances of the top-level import, only the ones in public demos as that is recommended indeed. |
||
'@mui/material': path.resolve(workspaceRoot, 'packages/mui-material/src'), | ||
|
||
'@mui/docs': path.resolve(workspaceRoot, 'packages/mui-docs/src'), | ||
'@mui/icons-material$': path.resolve( | ||
workspaceRoot, | ||
'packages/mui-icons-material/lib/esm/index.js', | ||
), | ||
'@mui/icons-material': path.resolve(workspaceRoot, 'packages/mui-icons-material/lib/esm'), | ||
'@mui/lab': path.resolve(workspaceRoot, 'packages/mui-lab/src'), | ||
'@mui/styled-engine': path.resolve(workspaceRoot, 'packages/mui-styled-engine/src'), | ||
|
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.
Also replacing this import from
@mui/system
to@mui/material
. This didn't seem intentional, but correct me if I'm wrong