parseTargetConfig() — react Function Reference
Architecture documentation for the parseTargetConfig() function in Options.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD c3310103_d462_d9f3_3830_423274c8a1af["parseTargetConfig()"] 4828f3cc_e6ac_9239_d7f7_c05f7f60419c["Options.ts"] c3310103_d462_d9f3_3830_423274c8a1af -->|defined in| 4828f3cc_e6ac_9239_d7f7_c05f7f60419c 24cdb07f_f37c_ae1f_e990_0390441e2808["parsePluginOptions()"] 24cdb07f_f37c_ae1f_e990_0390441e2808 -->|calls| c3310103_d462_d9f3_3830_423274c8a1af f4dabc03_d648_e2d6_19ef_83872ae711d3["throwInvalidConfig()"] c3310103_d462_d9f3_3830_423274c8a1af -->|calls| f4dabc03_d648_e2d6_19ef_83872ae711d3 style c3310103_d462_d9f3_3830_423274c8a1af fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/Entrypoint/Options.ts lines 414–426
export function parseTargetConfig(value: unknown): CompilerReactTarget {
const parsed = CompilerReactTargetSchema.safeParse(value);
if (parsed.success) {
return parsed.data;
} else {
CompilerError.throwInvalidConfig({
reason: 'Not a valid target',
description: `${fromZodError(parsed.error)}`,
suggestions: null,
loc: null,
});
}
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does parseTargetConfig() do?
parseTargetConfig() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/Entrypoint/Options.ts.
Where is parseTargetConfig() defined?
parseTargetConfig() is defined in compiler/packages/babel-plugin-react-compiler/src/Entrypoint/Options.ts at line 414.
What does parseTargetConfig() call?
parseTargetConfig() calls 1 function(s): throwInvalidConfig.
What calls parseTargetConfig()?
parseTargetConfig() is called by 1 function(s): parsePluginOptions.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free