Files
bun-src/test/bundler/transpiler/react-compiler-fixtures/mege-consecutive-scopes-dont-merge-with-different-deps.js
2026-08-27 21:09:14 +00:00

13 lines
351 B
JavaScript

const {getNumber, identity} = require('shared-runtime');
function Component(props) {
// Two scopes: one for `getNumber()`, one for the object literal.
// Neither has dependencies so they should merge
return {a: getNumber(), b: identity(props.id), c: ['static']};
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [{id: 42}],
};