callstack / callstack/react-native-bundle-visualizer

Accept metro bundler config as an argument.

Open
#126 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.