[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
mofeiZ committed
Mar 29, 2023 at 17:14 UTC
c2154b27859b2ab2d4a2822e992830dfdba4fcbd
1 file changed
+1
compiler/forget/packages/playground/components/Editor/index.tsx
+1
@@ -57,6 +57,7 @@ function parseFunctions(
57
FunctionDeclaration: {
58
enter(nodePath) {
59
items.push(nodePath);
60
+ nodePath.skip();
61
},
62
},
63
});