-
Notifications
You must be signed in to change notification settings - Fork 832
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
(chore) Better material-ui core components import strategy #1590
(chore) Better material-ui core components import strategy #1590
Conversation
oliviertassinari
commented
Mar 18, 2020
- Fix
- Import one level deep to speed-up bundling
This pull request is being automatically deployed with ZEIT Now (learn more). 🔍 Inspect: https://zeit.co/mui-org/material-ui-pickers/5zvv1qf67 |
import { makeStyles } from '@material-ui/core/styles'; | ||
import Typography from '@material-ui/core/Typography'; | ||
import IconButton from '@material-ui/core/IconButton'; | ||
import Grid from '@material-ui/core/Grid'; |
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.
To investigate if we can't get rid of this module. However, without the bundle size tracking tool of the core repository, it might be a bit challenging to measure progress on the impact.
Wouldn’t core imports be treeshaked even when mixed? |
They are. The motivation is not to force a choice on the users regarding https://material-ui.com/guides/minimizing-bundle-size/#development-environment. |
How can I run Prettier (my IDE doesn't support it)? |
Something broken with latest |
On the core repository, we have |
4630350
to
a1a16b9
Compare
a1a16b9
to
557d906
Compare
It does run on my side, I wish it didn't run actually, it's frustrating me to have to wait a couple of seconds to be able to commit. |
557d906
to
9416133
Compare
Codecov Report
@@ Coverage Diff @@
## next #1590 +/- ##
==========================================
+ Coverage 92.02% 92.07% +0.04%
==========================================
Files 64 64
Lines 1781 1791 +10
Branches 307 307
==========================================
+ Hits 1639 1649 +10
Misses 108 108
Partials 34 34
Continue to review full report at Codecov.
|