Enable more flags on playground
Joe Savona committed
May 23, 2023 at 16:55 UTC
99257aa4303c09186ca9a99fe0cf4a5995d4bd96
1 file changed
+3
-1
compiler/forget/packages/playground/components/Editor/index.tsx
+3
-1
@@ -122,9 +122,11 @@ function compile(source: string): CompilerOutput {
122
for (const fn of parseFunctions(source)) {
123
for (const result of run(fn, {
124
customHooks: new Map([...COMMON_HOOKS]),
125
- validateHooksUsage: true,
125
+ enableAssumeHooksFollowRulesOfReact: true,
126
+ enableFunctionCallSignatureOptimizations: true,
127
inlineUseMemo: true,
128
memoizeJsxElements: true,
129
+ validateHooksUsage: true,
130
})) {
131
const fnName = fn.node.id?.name ?? null;
132
switch (result.kind) {