solid-react-components icon indicating copy to clipboard operation
solid-react-components copied to clipboard

The size of the bundle 4MB

Open michaud opened this issue 5 years ago • 1 comments

I tested a build of a minimal generator-solid-react project and found that the solid-react-components currently is a few bytes short of 4MB that will be 1MB gzipped over the line but will still be 4MB of code in the browser memory usage. I saw that in issues #15 and #106 changes were made to reduce the size to 979 KB. I think it's time for a new review.

michaud avatar Jan 31 '20 21:01 michaud

I've gone through the build and picked some low hanging fruit:

  • solid & inrupt logo base64 encoded in build
  • why 26Kb (15Kb) worth of guids(?) in build
    • @shexjs shex-loader-browserify.js solid-react-components
  • mimetype list 132Kb (19Kb) -@shexjs shex-loader-browserify.js
  • list of suspect? domain names 122Kb (34Kb)
    • tough-cookie uses psl
  • moment complete is big 540 Kb (75Kb)
    • Note: In 2.4.0, the globally exported moment object was deprecated. It will be removed in next major release.
  • fontawesome is big 1.203Kb (370Kb) this could shave 2mb (500Kb) off of the build

michaud avatar Feb 16 '20 12:02 michaud