jbenet / depviz

dependency visualizer for the web
https://jbenet.github.io/depviz
MIT License
49 stars 10 forks source link

*: Granular react-router imports (from react-router/lib/${class}) #41

Closed wking closed 7 years ago

wking commented 7 years ago

As documented here. This only cuts ~10 kB from our compiled bundle (4042769 -> 4032506 bytes, so about 0.2%), but it's a straightforward enough change that I'll make it anyway ;).

What we really want to trim our bundle size down is dynamic routing, so we can get a homepage up quickly and save the heavy graph deps for later (removing the DepGraph import from App.js gets the main JS bundle down to 296kB, over a 10x reduction from the current 4MB). But I haven't had time to figure that out yet.

jbenet commented 7 years ago

👍