0

Using browserify (commonjs), how can I minimize the size of react-virtualized? It seems to be including other classes that I'm not using like Collection and Table. I have tried using the standard syntax import {foo, bar}... as well as specifying each class individually import {WindowScroller} from 'react-virtualized/dist/commonjs/WindowScroller'. Yet it seems that RV is still taking up ~90k:

enter image description here enter image description here Thanks!

Mbrevda
  • 2,888
  • 2
  • 27
  • 35
  • Is this before or after minification? If before, it wouldn't be too surprising- since `Table` (22k) includes `Grid` (40k) as well as a few utility objects. Those sizes include white space, comments, etc. though. – bvaughn Oct 13 '16 at 19:47
  • I'm including grid, but not table. This is after minification – Mbrevda Oct 13 '16 at 20:19
  • RV by _itself_ is taking up 90k _after_ minification? That doesn't sound correct. The full UMD build of the library, run through a minifier, is only 103k. – bvaughn Oct 14 '16 at 01:58
  • Unless disc is reporting things incorrectly, it would seems to be taking up 89k – Mbrevda Oct 14 '16 at 04:45

1 Answers1

0

This has been addressed in v8, where bundle sizes have been reduced

Mbrevda
  • 2,888
  • 2
  • 27
  • 35