CRA bundles dependencies and project code in one single JS file #12369
Unanswered
pSnehanshu
asked this question in
Q&A
Replies: 1 comment
-
You can check out code splitting from the React Docs. https://reactjs.org/docs/code-splitting.html |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Earlier create-react-app used to produce separate JS files for the node_modules code and the project code. In a recent project, I noticed that only one script is included in the
index.html
and it contains both vendor code and project code. When did this change happen? Can we switch back to the old behaviour because I would like my users to cache the dependencies for a longer period as they don't change very frequently?Example of a new combined script. main.64f0e964.js.zip
Beta Was this translation helpful? Give feedback.
All reactions