From c2154b27859b2ab2d4a2822e992830dfdba4fcbd Mon Sep 17 00:00:00 2001 From: mofeiZ <34200447+mofeiZ@users.noreply.github.com> Date: Wed, 29 Mar 2023 17:14:58 -0400 Subject: [PATCH] [playground] Only collect first level of function declarations #1433 means that Forget now will compile nested function declarations, so we no longer need to compile these separately --- compiler/forget/packages/playground/components/Editor/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/forget/packages/playground/components/Editor/index.tsx b/compiler/forget/packages/playground/components/Editor/index.tsx index 3ab6e36ce0..0a14b29683 100644 --- a/compiler/forget/packages/playground/components/Editor/index.tsx +++ b/compiler/forget/packages/playground/components/Editor/index.tsx @@ -57,6 +57,7 @@ function parseFunctions( FunctionDeclaration: { enter(nodePath) { items.push(nodePath); + nodePath.skip(); }, }, });