Skip to content
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

pass custom customTransformOptions and customResolverOptions to bundle_build_started log event #1061

Conversation

EvanBacon
Copy link
Contributor

@EvanBacon EvanBacon commented Aug 17, 2023

Summary

We use customTransformOptions in Expo CLI to inform Metro that we're bundling for a Node.js environment (in addition to the platform=web), but the logger has no way of indicating to the user that a bundle is Server-specific. This change would enable us to refine the bundling message based on the additional criteria. We can do this if we skip over the server (exports/builds) but it'd be good to have parity. Example usage, corresponding output.

Test plan

@facebook-github-bot facebook-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. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. labels Aug 17, 2023
@facebook-github-bot
Copy link
Contributor

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

@motiz88
Copy link
Contributor

motiz88 commented Aug 18, 2023

Looks good to me, but there's a Flow error in packages/metro/src/commands/build.js (aren't we running Flow in CircleCI? Maybe not on PRs?)

@facebook-github-bot
Copy link
Contributor

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

@robhogan
Copy link
Contributor

Maybe not on PRs?

We always used to, but this was turned off on CircleCI for PRs from forks, not sure when/why - I've just re-enabled it.

@robhogan
Copy link
Contributor

Lint error now is due to an internal callsite that needs updating - I'll take care of that.

@facebook-github-bot
Copy link
Contributor

@robhogan merged this pull request in b2f43ee.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged Shared with Meta Applied 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.

None yet

4 participants