dillon1000/react
Commit
Browse files [compiler] Handle earlier creation of early return on scopes
I'm experimenting with a new pass that sometimes creates scopes with early returns earlier in the pipeline, but there are a few passes that assume that can't happen. This PR is updating those passes just to be more resilient to help unblock experimentation. ghstack-source-id: a9e348181ddad1a1e936ef023b5d5ee44aaf3d8c Pull Request resolved: https://github.com/facebook/react/pull/30333
Changed paths2 files
First-parent comparisoncompiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/PropagateEarlyReturns.ts ModifiedM compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/PruneNonEscapingScopes.ts ModifiedPatch
Files changed
Rendering syntax-highlighted changes…