Files
oxc-project__oxc/crates/oxc_react_compiler/tests/snapshots/capturing-func-alias-computed-mutate-iife.snap
2026-08-20 07:19:24 +00:00

26 lines
507 B
Plaintext

---
source: crates/oxc_react_compiler/tests/snapshot.rs
input_file: crates/oxc_react_compiler/fixtures/capturing-func-alias-computed-mutate-iife.js
---
import { c as _c } from "react/compiler-runtime";
const { mutate } = require("shared-runtime");
function component(a) {
const $ = _c(2);
let y;
if ($[0] !== a) {
const x = { a };
y = {};
y["x"] = x;
mutate(y);
$[0] = a;
$[1] = y;
} else {
y = $[1];
}
return y;
}
export const FIXTURE_ENTRYPOINT = {
fn: component,
params: ["foo"]
};