I read the documentation on the material interface and it says:
Please note that in the above example we used: import RaisedButton from 'material-ui/RaisedButton';
instead import {RaisedButton} from 'material-ui';
This will make your build faster and your build result smaller.
I cannot find excuses why using the default export makes the build process faster or reduces output.
My manager asks us to refrain from using the default export, but a smaller build size is an important goal for this project. I mentioned this quote in Material UI and they said to find evidence. I would like to get some evidence, as my attempts to compile it with Babel showed that there default
would be more if anything.
source
share