Closed dmytrorykun closed 1 year ago
This pull request was exported from Phabricator. Differential Revision: D48684443
This pull request was exported from Phabricator. Differential Revision: D48684443
This pull request was exported from Phabricator. Differential Revision: D48684443
This pull request was exported from Phabricator. Differential Revision: D48684443
Patch coverage has no change and project coverage change: -0.01%
:warning:
Comparison is base (
e0dd91b
) 83.39% compared to head (e8bb13b
) 83.38%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This pull request was exported from Phabricator. Differential Revision: D48684443
This pull request was exported from Phabricator. Differential Revision: D48684443
Summary: X-link: https://github.com/facebook/react-native/pull/39159
Source is not required for
getPreset
ofreact-native/babel-preset
. There is a codition that addsreact-native/babel-plugin-codegen
to the preset only if source is passing certain regex. This condition fails if source is null, but that's wrong because the plugin may still be requred for this transformation even though source is not provided. This diff changes the condition so the regexp tests source only if it is not null, andreact-native/babel-plugin-codegen
automatically added to the preset otherwise. Changelog: [Internal]Reviewed By: robhogan, RSNara
Differential Revision: D48684443