Reduce bundle size
Today's build of 73460371 (this does not have the algorithms.json
bundled anymore):
File sizes after gzip:
737.9 KB build/static/js/2.a28c4d21.chunk.js
35.84 KB build/static/js/main.364ca3d4.chunk.js
775 B build/static/js/runtime-main.595ff79e.js
135 B build/static/css/main.876345ae.chunk.css
Still too much I guess. As per https://create-react-app.dev/docs/analyzing-the-bundle-size/:
Externals:
- 72.4% by viz.js (1.98 MB, graphviz dependency) !!!
- 6.2% by MUI (174 KB, not much to do I guess)
- 4.1% by react (114KB, not much to do I guess)
- 2.1% by immutable.js (60KB, used only for Maps in redux)
Our code is not that big. Find out how to reduce viz.js size. Their github repo says they compiled the C code with Emscripten :( Is there a way how not to bundle whole viz.js?