-
Notifications
You must be signed in to change notification settings - Fork 843
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
Reduce distribution size #12
Comments
Attaching baseline report from source-map-explorer to compare changes too: |
uri.js (48kb) - looks like it's bundled twice (once for stellar-sdk and once for react-scripts) ... bluebird (77kb) is bundled but es6-promise (6kb) and 'promise' are also. is it possible to consolidate on one, maybe use es6-promise instead of bluebird? |
dropped ~40k approx upgrading to react 16 |
switching to preact would heavily reduce the size too. see compat module too: https://github.com/developit/preact-compat |
#76 will reduce the bundle by 130k |
a big chunk of the bundle now is the directory from stellarterm. one way to get that down is to remove the logo properties (base64 image data) and link to them externally (load on demand) somehow. |
use code splitting features (PRPL pattern). |
Uncompressed the full distribution with required dependencies is 1.45MB.
Try get this down a bit by analysing the bundled dependencies.
The text was updated successfully, but these errors were encountered: