@samitouri / QOS-React / commits / ad5a272393

Skip functions using same rules as regular pipeline

Joe Savona committed Feb 14, 2024 at 15:23 UTC ad5a27239392d02ffec168cdbffc582ee1cb3969
1 file changed +1 -1
compiler/packages/babel-plugin-react-forget/src/Entrypoint/Program.ts
+1 -1
@@ -361,7 +361,7 @@ export function compileProgram(
361 }
362 }
363
364 -function shouldVisitNode(fn: BabelFn, pass: CompilerPass): boolean {
364 +export function shouldVisitNode(fn: BabelFn, pass: CompilerPass): boolean {
365 if (hasUseMemoCacheCall(fn)) {
366 return false;
367 }