From 5888cbdd9bbfa36979cb6fc3313f94c0c5c263d1 Mon Sep 17 00:00:00 2001 From: Lauren Tan Date: Wed, 8 Feb 2023 10:26:24 -0500 Subject: [PATCH] Don't throw on invalid compiler flags --- compiler/forget/src/CompilerFlags.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/forget/src/CompilerFlags.ts b/compiler/forget/src/CompilerFlags.ts index 5e41301b90..d4b90b94f6 100644 --- a/compiler/forget/src/CompilerFlags.ts +++ b/compiler/forget/src/CompilerFlags.ts @@ -30,7 +30,7 @@ export function parseCompilerFlags(obj: unknown): CompilerFlags { } } if (invalidFlags.length > 0) { - throw new Error(`Unexpected React Forget compiler flags: ${invalidFlags}`); + console.error(`Unexpected React Forget compiler flags: ${invalidFlags}`); } return { ...defaultFlags, ...parsedFlags }; }