callstack / callstack/react-native-bundle-visualizer
Accept metro bundler config as an argument.
- Dominant language
- No language data
- Stars
- 1.6k
- Forks
- 50
- PR merge metrics
- No merged PRs in 30d
Description
Proposed change:
Accept a `--config` argument & pass it on to react native bundle command.
Example usage -
`react-native-bundle-visualizer --platform android --config metro+esbuild.config.js`
Why is this needed:
It'll be easier to view bundle sizes when testing out different configurations of metro config.
Ex:: Bundling with es-build /without es-build.
Contributor guide
Research direction
Start at the argument parsing for the react-native-bundle-visualizer command and follow how options are passed to the React Native bundle command. Verify the --config value is forwarded, then try the Android example with metro+esbuild.config.js to confirm the requested configuration is used.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react-native
- Domain
- cli, mobile
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100