mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Don't throw on invalid compiler flags
This commit is contained in:
@@ -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 };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user