-
-
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
[core] Export everything from the second level #18306
Conversation
@material-ui/core: parsed: +0.82% , gzip: +0.64% Details of bundle changes.Comparing: aed1f38...bc77b50
|
@merceyz Let me know if you need any assistance with this effort. |
Yes please, I don't know what to do about the codemod. As for the import/export, the idea was to just disable that eslint rule |
@merceyz I will look at it after dinner :) |
@merceyz Updated, let me know what you think about the approach. |
import withWidth from '@material-ui/core/withWidth'; | ||
import { isWidthUp } from '@material-ui/core/withWidth'; |
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.
@oliviertassinari What happened here?
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.
Previously, isWidthUp
wasn't exported from the barrel index.js. With the latest changes, imports can be changed. However, the codemod doesn't support the following case well:
import withWidth, { isWidthUp } from '@material-ui/core/withWidth';
It needs two runs to handle it correctly. This breaks the idempotent assertion.
I haven't found how to fix the 2 runs issue. Instead, I have changed the import syntax so the codemod test can be idempotent (equivalent to ignoring the problem).
@merceyz Thank you |
Export everything from the second level
Closes #17375