Files
bun-src/test/bundler/transpiler/react-compiler-fixtures/hoisted-function-declaration.js
T
2026-08-27 21:09:14 +00:00

20 lines
254 B
JavaScript

function component(a) {
let t = {a};
x(t); // hoisted call
function x(p) {
p.a.foo();
}
return t;
}
export const FIXTURE_ENTRYPOINT = {
fn: component,
params: [
{
foo: () => {
console.log(42);
},
},
],
};