B
B
Barring2019-07-08 00:50:38
React
Barring, 2019-07-08 00:50:38

How to reduce the size of reactdom?

When "import ReactDOM from "react-dom";" the size of the final js file increases by ~ 400kb+.
In some github repositories I saw final js files ~ 200kb in size. Is it possible somehow to squeeze this whole thing still? (I already get a minified file at the output, but nevertheless its weight is noticeable)
// Apart from one small component, there is no more js code.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Spirin, 2019-07-08
@Barring

Apparently, you are not building in production mode.
react-dom minified - 100kb
react minified - 6kb
But storing bundles in a repository is wrong.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question