dillon1000/react

Commit

[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.
Browse files
Changed paths4 files
First-parent comparison
M compiler/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 Modified
Patch

Files changed

Rendering syntax-highlighted changes…