2 ms·
That "bare minimum" repo is including a lot of Babel polyfills. You could use Typescript instead of Babel, and shave off a bunch of polyfills in the process. C
by WorldMaker 8y ago
That "bare minimum" repo is including a lot of Babel polyfills. You could use Typescript instead of Babel, and shave off a bunch of polyfills in the process.
Comparing apples more to apples, while the react-dom.development.js is indeed ~600 kbs. The minified production build of react-dom is only ~70 kbs [1], which is is smaller than jQuery minified (but not gzipped) [2].
It's not necessarily React itself that is bloating these project sizes.
[1] https://github.com/facebook/react/releases https://github.com/facebook/react/releases
[2] https://mathiasbynens.be/demo/jquery-size https://mathiasbynens.be/demo/jquery-size