Don't throw on invalid compiler flags

This commit is contained in:
Lauren Tan
2023-02-08 10:26:24 -05:00
parent 24b28ae257
commit 5888cbdd9b
+1 -1
View File
@@ -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 };
}