3 ms·
For React you kind of have to use the minified file size, because the dev file size is SHOCK FULL of dev-only validation and error messages and other logic that
by shados 11y ago
For React you kind of have to use the minified file size, because the dev file size is SHOCK FULL of dev-only validation and error messages and other logic that is made to be minified away. The prod build isn't even close to the same code.
With that said React + ReactDOM is 180kbish unminified.
I can't find Relay's size as a single file. Is it really over 800kb?
- coltonv 11y agoReact unminified is ~660kb.
- shados 11y agoYou're totally right. I downloaded the latest release earlier and looked at the file size, and did it again right now, and you're correct. I still can't figure out where the hell I saw the smaller numbers earlier. I must have been drunk.
- andrewingram 11y agoI'll need to do a webpack report to get the actual numbers out. However, my dev build is 9mb, my production build is 1mb. So when i'm talking about baseline filesize for a React + Relay project, I am talking about production builds. Not all of this 1mb comes from those two libs, but they contribute very heavily towards it.