Input
function foo(a, b, c, d) {
let x = someObj();
if (a) {
const y = someObj();
const z = y;
x = z;
} else {
x = someObj();
}
x.f = 1;
return x;
}
Code
import { c as _c } from "react/compiler-runtime";
function foo(a, b, c, d) {
const $ = _c(2);
someObj();
let x;
if ($[0] !== a) {
if (a) {
const y = someObj();
const z = y;
x = z;
} else {
x = someObj();
}
x.f = 1;
$[0] = a;
$[1] = x;
} else {
x = $[1];
}
return x;
}