goodwin64/instagram-not-mutual-followers

Build is too large, tree shaking isn't applied

Closed this issue · 3 comments

Investigate how to apply tree shaking so Material UI and other dependencies won't be included entirely, but only required sub-packages.

2 obvious benefits:

  1. The build size will be smaller
  2. Easier to deliver and test

Yes this is the first *monkey extension I saw whose code is scattered over so many small files. I gave up on trying to understand what happens...
maybe I'm too old and this is the new fashion in programming.

:)

Just for the purpose of quick scaffolding I used giant Material UI library with React+Preact (and preact-compat) for UI layer. Theoretically, they can bad omitted and code bundle will be lightweight but I'm sure development will be slower as well.

One more reason to solve this issue:

image