dillon1000/react
Commit
Browse files Handle IIFE with logical mutated later
The previous changes mostly meant that we removed the label terminal and didn't have instructions for the same scope split in a way that we couldn't merge. But logicals were still causing a split because MergeConsecutiveScopes can't merge the blocks in that case. Here we move PruneUnusedLabels earlier in the pipeline to ensure that instructions from IIFEs have floated up to the parent block scope level.
Changed paths3 files
First-parent comparisoncompiler/packages/babel-plugin-react-forget/src/Entrypoint/Pipeline.ts ModifiedA compiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/iife-return-modified-later-logical.expect.md AddedA compiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/iife-return-modified-later-logical.js AddedPatch
Files changed
Rendering syntax-highlighted changes…