dillon1000/react
Commit
Browse files Repro for scope merging bug
This is a repro for a bug that occurs when `enableMergeConsecutiveScopes` is enabled. Reminder that this feature is off by default and not enabled yet internally. I found this via #2121, where eliminating extraneous whitespace JSXText instructions meant that MergeConsecutiveScopes started merging a fixture differently, revealing a bug. This PR reproduces that case by keeping the identical structure, but using plain objects to represent the JSX elements instead of JSX syntax.
Changed paths2 files
First-parent comparisoncompiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/merge-consecutive-scopes-objects.expect.md AddedA compiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/merge-consecutive-scopes-objects.js AddedPatch
Files changed
Rendering syntax-highlighted changes…