Skip to content

Instantly share code, notes, and snippets.

@bcherny
Last active July 29, 2018 20:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bcherny/422c0f33958ce861db74f4eef96ed2b4 to your computer and use it in GitHub Desktop.
Save bcherny/422c0f33958ce861db74f4eef96ed2b4 to your computer and use it in GitHub Desktop.
Compiled file sizes of common JavaScript dependencies

Using Webpack + Uglify + treeshaking + commonjs (not es2015).

Setup: https://github.com/bcherny/rxjs-filesize-repro

Package import Size Size (gzipped)
rxjs Observable 12kb 3kb
react Component 9kb 4kb
react-dom render 100kb 33kb
lodash map 20kb 6kb
lodash map+forEach 21kb 6kb
lodash all 70kb 25kb
relay QueryRenderer 135kb 38kb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment