Closed
Description
What kind of issue is this?
- React Compiler core (the JS output is incorrect, or your app works incorrectly after optimization)
- babel-plugin-react-compiler (build issue installing or using the Babel plugin)
- eslint-plugin-react-compiler (build issue installing or using the eslint plugin)
- react-compiler-healthcheck (build issue installing or using the healthcheck script)
Link to repro
Repro steps
I noticed that return
without a value (e.g. return
vs return undefined
) causes compiler to bailout. Please see the below examples:
vs
prior discussion: reactwg/react-compiler#61
How often does this bug happen?
Every time
What version of React are you using?
0.0.0-experimental-6aa8254b-20250312
What version of React Compiler are you using?
0.0.0-experimental-ecdd742-20250312