dillon1000/react
Commit
Browse files [hir] Refactor constant propagation of phis
This PR moves the phi evaluation to a separate function. Most importantly, it inverts the default case to _not_ constant propagate unless we have explicit validation of the phi operands.
Changed paths2 files
First-parent comparisoncompiler/forget/packages/babel-plugin-react-forget/src/Optimization/ConstantPropagation.ts ModifiedM compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/constant-propagate-global-phis.expect.md ModifiedPatch
Files changed
Rendering syntax-highlighted changes…