-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: [#176479978] Add react native bundle visualizer as dev dependency #2719
Conversation
Affected stories
New dependencies added: react-native-bundle-visualizerAuthor: IjzerenHein Description: See what's inside your react-native bundle Homepage: https://github.com/IjzerenHein/react-native-bundle-visualizer#readme
|
Option | Description | Example |
---|---|---|
platform |
Platform to build (default is ios) | --platform android |
expo |
Expo target, managed or bare. This ensures that the project is bundled with expo settings and that .expo file extensions are handled appropriately. |
--expo bare |
dev |
Dev or production build (default is false) | --dev false |
entry-file |
Entry-file (when omitted tries to auto-resolve it) | --entry-file ./index.android.js |
bundle-output |
Output bundle-file (default is tmp) | --bundle-output ./myapp.bundle |
format |
Output format html, json or tsv (default is html) (see source-map-explorer options) | --format json |
only-mapped |
Exclude "unmapped" bytes from the output (default is false). This will result in total counts less than the file size. | --only-mapped |
verbose |
Dumps additional output to the console (default is false) | --verbose |
reset-cache |
Removes cached react-native files (default is false) | --reset-cache |
Usage with older react-native versions and the Haul bundler
As of react-native-bundle-visualizer
version 2.x, the direct output of the Metro bundler is visualized using the source-map-explorer.
Prior to version 2, the Haul bundler was used which used Webpack. If you are having problems visualizing the output for older react-native versions, or you want to explicitly use the Haul bundler, please check out the V1 documentation.
License
Codecov Report
@@ Coverage Diff @@
## master #2719 +/- ##
========================================
Coverage 51.76% 51.76%
========================================
Files 751 751
Lines 21110 21110
Branches 3691 4018 +327
========================================
Hits 10928 10928
Misses 10140 10140
Partials 42 42 Continue to review full report at Codecov.
|
Short description
This pr adds react native bundle visualizer in order to measure the size of the bundle.
List of changes proposed in this pull request
"react-native-bundle-visualizer": "^2.2.1"
addevDependency
How to test
yarn run react-native-bundle-visualizer
in order to see the size distribution