Skip to content

feat: add --custom-resolver-options to bundle command - #42333

Closed
szymonrybczak wants to merge 2 commits into
react:mainfrom
szymonrybczak:feat/cli/add-resolver-option
Closed

feat: add --custom-resolver-options to bundle command#42333
szymonrybczak wants to merge 2 commits into
react:mainfrom
szymonrybczak:feat/cli/add-resolver-option

Conversation

@szymonrybczak

@szymonrybczakszymonrybczak commented Jan 17, 2024

Copy link
Copy Markdown
Contributor

Summary:

Added --custom-resolver-options to --bundle command. This options is also available in Metro's CLI.

Changelog:

[INTERNAL] [ADDED] - Add --resolver-options to bundle command

Test Plan:

  1. Build all packages by running yarn build in the root
  2. Go to packages/rn-tester and run npx react-native bundle --custom-resolver-options key=value and the options should be passed to the Config.

@facebook-github-botfacebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Callstack Partner: Callstack Partner labels Jan 17, 2024
@szymonrybczak

Copy link
Copy Markdown
ContributorAuthor

cc @huntie

@facebook-github-botfacebook-github-bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Jan 17, 2024
Comment threadpackages/community-cli-plugin/src/commands/bundle/buildBundle.js Outdated
@szymonrybczak
szymonrybczakforce-pushed the feat/cli/add-resolver-option branch from ef58a47 to f474186CompareJanuary 17, 2024 14:35
@szymonrybczakszymonrybczak changed the title feat: add --resolver-options to bundle commandfeat: add --custom-resolver-options to bundle commandJan 17, 2024
Comment threadpackages/community-cli-plugin/src/commands/bundle/index.js Outdated
Co-authored-by: Alex Hunt <hello@alexhunt.io>
@facebook-github-bot

Copy link
Copy Markdown
Contributor

@huntie has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-botfacebook-github-bot added the Merged This PR has been merged. label Jan 18, 2024
@facebook-github-bot

Copy link
Copy Markdown
Contributor

@huntie merged this pull request in 31a162f.

facebook-github-bot pushed a commit that referenced this pull request Jan 22, 2024
Summary:
Pull Request resolved: #42392
Follow-up to #42333 following internal feedback. We are now aligning this to match the [`metro build` command](https://github.com/facebook/metro/blob/702e1b8fc7ab8b973bcd53f1a41f7e797cbf7dca/packages/metro/src/commands/build.js#L85-L91). This also improves validation on parsing (done after initial `commander` arg parsing as variadic string).
Changelog: [Internal]
(same as #42333)
Reviewed By: motiz88
Differential Revision: D52911017
fbshipit-source-id: 54049aa20c9db344a0f485fddf62fb267e672376
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA SignedThis label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.MergedThis PR has been merged.p: CallstackPartner: CallstackPartnerShared with MetaApplied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@szymonrybczak@facebook-github-bot@huntie@thymikee