dillon1000/react
Commit
Browse files [babel] Add gating module support
Instead of replacing original function with compiled code, this adds an option to append the code and switch between the two based on an `isForgetEnabled` test condition that's imported from the specified gatingModule.
Changed paths4 files
First-parent comparisoncompiler/forget/src/Babel/BabelPlugin.ts ModifiedA compiler/forget/src/__tests__/fixtures/hir/gating-test.expect.md AddedA compiler/forget/src/__tests__/fixtures/hir/gating-test.js AddedM compiler/forget/src/__tests__/hir-test.ts ModifiedPatch
Files changed
Rendering syntax-highlighted changes…