dillon1000/react
Commit
Browse files [babel] Invoke gating module as a call expression
This is incredibly obvious in hindsight, but for exposure logging to work correctly we need to *call* the underlying `MobileConfig.getBool` function at the callsite – otherwise the bool is evaluated once (and only once) when the module is loaded. Tested internally and verified that in dogfooding the exposure logging was working correctly
Changed paths8 files
First-parent comparisoncompiler/forget/src/Babel/BabelPlugin.ts ModifiedM compiler/forget/src/__tests__/fixtures/compiler/arrow-function-expr-gating-test.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/compiler/gating-test-export-default-function.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/compiler/gating-test-export-function-and-default.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/compiler/gating-test-export-function.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/compiler/gating-test.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/compiler/multi-arrow-expr-export-gating-test.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/compiler/multi-arrow-expr-gating-test.expect.md ModifiedPatch
Files changed
Rendering syntax-highlighted changes…