Skip to content

Commit e704f8a

Browse files
yungstersfacebook-github-bot
authored andcommitted
RN/Metro: Set reactRuntimeTarget on Hermes Parser (#50339)
Summary: Pull Request resolved: #50339 Explicitly sets the default `reactRuntimeTarget` when invoking `require('hermes-parser').parse` so that it'll be easier to find these configurations when upgrading to `'19'`. Changelog: [Internal] Reviewed By: javache Differential Revision: D72006705 fbshipit-source-id: 4994917152a2a4a767b871d4a36092c0c5391324
1 parent 7f550e2 commit e704f8a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: packages/react-native-codegen/src/parsers/flow/parseFlowAndThrowErrors.js

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ function parseFlowAndThrowErrors(
2525
babel: false,
2626
// Parse Flow without a pragma
2727
flow: 'all',
28+
reactRuntimeTarget: '18',
2829
...(options.filename != null ? {sourceFilename: options.filename} : {}),
2930
});
3031
} catch (e) {

0 commit comments

Comments
 (0)