Analyzing Bundle Size
If you want to understand where the excess code in your JavaScript bundles is coming from, you can use a helpful tool called Source Map Explorer. In this guide, we'll learn how to add Source Map Explorer to your Create React App project and analyze the bundle size.
Installation
To get started, follow these steps:
-
Open your command line interface.
-
If you're using npm, run the following command:
npm install --save source-map-explorer
If you prefer using yarn, use this command instead:
yarn add source-map-explorer