dillon1000/react
Commit
Browse files 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.
Changed paths6 files
First-parent comparisoncompiler/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 ModifiedPatch
Files changed
Rendering syntax-highlighted changes…