dillon1000/react

Commit

Pass environment options through babel plugin

Updates the babel plugin so that environment options — including custom hook 
definitions — can be passed in through the plugin: 

* Renames `CompilerFlags` => `PluginOptions` since they are specific to the 
babel plugin, and are no longer just flags. 

* Moves the definition of `useFreeze()` out of the builtin hook list and instead 
passes it when our unit tests configure the plugin.
Browse files
Changed paths6 files
First-parent comparison
M compiler/forget/src/Babel/BabelPlugin.ts ModifiedA compiler/forget/src/Babel/PluginOptions.ts AddedM compiler/forget/src/Babel/RunReactForgetBabelPlugin.ts ModifiedD compiler/forget/src/CompilerFlags.ts DeletedM compiler/forget/src/HIR/Hooks.ts ModifiedM compiler/forget/src/__tests__/hir-test.ts Modified
Patch

Files changed

Rendering syntax-highlighted changes…