React App's bundle size needs to be smaller
Closed this issue · 0 comments
NullVoxPopuli commented
Did a bundle analysis from this branch/pr: #182
Main notes:
- (173KB gz) auth0-lock includes its own node_modules|
- 72KB is "node_modules"
- 101KB is "lib" -- maybe there is a way to get this trimmed down or load auth0-lock async when we hit the login route
- (132KB gz) semantic-ui
- about 28KB is unused image assets
- (62KB gz) semantic-ui-react
- should be able to be trimmed down by not importing any components from
semantic-ui-react
- should be able to be trimmed down by not importing any components from
- (62KB + 16.34KB + 24.85KB gz) moment
- maybe look in to alternatives: https://blog.bitsrc.io/9-javascript-date-time-libraries-for-2018-12d82f37872d
- app.js is looking good at 63KB
- 10KB is css - maybe this could be trimmed?