How to share file main.js in reactjs multiple entry points app

Viewed 30

I created an reactjs app with multiple entry points (23 entry points). The total size of all static files is 250Mb, the file main.js is about 1-2Mb and main.js.map is about 5-10Mb.

I noticed that the file main.js seems to contain common libraries: React, preserve, perfect-scrollbar, ReactJs, ....

How to reduce the size of static files? How to share the common libraries?

enter image description here

0 Answers
Related