Why is exporting/importing default ES module properties faster than names module properties?
- 阅读更多 关于 Why is exporting/importing default ES module properties faster than names module properties?
I'm reading the Material UI documentation, and it states: Notice that in the above example, we used: import RaisedButton from 'material-ui/RaisedButton'; instead of import {RaisedButton} from 'material-ui'; This will make your build process faster and your build output smaller. I cannot find any justification for why the use of default exports makes the build process faster or build output smaller. My manager is asking us to refrain from using default exports, however a smaller build size is an important target for this project. I mentioned this quote by Material UI, and they said to find