dillon1000/react

Commit

Add a noEmit compiler option

Defaults to false, ie it runs the codegen pass. When enabled it will simply run 
all passes up to codegen and then skip over it. Naming of this option is copied 
from [TypeScript](https://www.typescriptlang.org/tsconfig#noEmit) which has the 
same named option that makes the compiler only perform typechecking. 

I'm adding this option primarily to get around some issues running the eslint 
plugin on Meta code. The plugin would error because Forget would report 
duplicate Babel AST nodes, which I presume would only occur during codegen. It 
should also make it a tiny bit faster to not run codegen, which is a nice plus.
Browse files
Changed paths3 files
First-parent comparison
M compiler/forget/packages/babel-plugin-react-forget/src/Entrypoint/Options.ts ModifiedM compiler/forget/packages/babel-plugin-react-forget/src/Entrypoint/Program.ts ModifiedM compiler/forget/packages/eslint-plugin-react-forget/src/rules/ReactForgetDiagnostics.ts Modified
Patch

Files changed

Rendering syntax-highlighted changes…