umijs / sula

🚀 Pluggable enterprise-level configurable framework based on antd.
https://docs.sula.vercel.app
MIT License
789 stars 90 forks source link

Feature: Reduce the bundle output size #30

Open KrishnaPG opened 4 years ago

KrishnaPG commented 4 years ago

Description

Currently, Sula + AntD + dependencies (lodash, moment, axios etc.) are coming up to 1.4MB bundle size in production mode. This is large and preferable to reduce it as much as possible.

Solution

image

KrishnaPG commented 4 years ago

Also, using dynamic imports with React.lazy will reduce the initial load times: https://github.com/umijs/sula/issues/47