dillon1000/react

Commit

Ensure Forget runs first if specified in a Babel config

This commit adds a new Program visitor to our Babel plugin which then calls our 
FunctionDeclaration visitor. Babel does some "smart" merging of plugin passes so 
so even if plugin A is inserted prior to plugin B, if A does not have a Program 
visitor and B does, B will run first. 

Note that we also can't use Forget inside of a Babel preset as plugins run 
_before_ presets (https://babeljs.io/docs/en/plugins/#plugin-ordering).
Browse files
Changed paths1 file
First-parent comparison
M compiler/forget/src/Babel/BabelPlugin.ts Modified
Patch

Files changed

Rendering syntax-highlighted changes…