From 20c69505852fc5397cb71bcfd00159d101c44904 Mon Sep 17 00:00:00 2001 From: Lauren Tan Date: Tue, 7 Jan 2025 11:47:49 -0500 Subject: [PATCH] [playground] Use default compiler config The playground's compilation mode is currently set to 'all' along with reporting all errors. This tends to be misleading since people usually expect a 1:1 match between how the playground works with what the compiler does in their codebase, eg https://github.com/reactwg/react-compiler/discussions/51. --- compiler/apps/playground/components/Editor/EditorImpl.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/compiler/apps/playground/components/Editor/EditorImpl.tsx b/compiler/apps/playground/components/Editor/EditorImpl.tsx index 785b9fd075d12..c475a1585a9d8 100644 --- a/compiler/apps/playground/components/Editor/EditorImpl.tsx +++ b/compiler/apps/playground/components/Editor/EditorImpl.tsx @@ -78,8 +78,6 @@ function invokeCompiler( logEvent: () => {}, }, environment, - compilationMode: 'all', - panicThreshold: 'all_errors', }); const ast = parseInput(source, language); let result = transformFromAstSync(ast, source, {