tryParseExternalFunction() — react Function Reference
Architecture documentation for the tryParseExternalFunction() function in Environment.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD 3d8c9cf4_b77b_a09b_46bb_a39cfadd4173["tryParseExternalFunction()"] 1b971013_8a90_0d8d_1fcc_f31581cd66aa["Environment.ts"] 3d8c9cf4_b77b_a09b_46bb_a39cfadd4173 -->|defined in| 1b971013_8a90_0d8d_1fcc_f31581cd66aa 24cdb07f_f37c_ae1f_e990_0390441e2808["parsePluginOptions()"] 24cdb07f_f37c_ae1f_e990_0390441e2808 -->|calls| 3d8c9cf4_b77b_a09b_46bb_a39cfadd4173 f4dabc03_d648_e2d6_19ef_83872ae711d3["throwInvalidConfig()"] 3d8c9cf4_b77b_a09b_46bb_a39cfadd4173 -->|calls| f4dabc03_d648_e2d6_19ef_83872ae711d3 style 3d8c9cf4_b77b_a09b_46bb_a39cfadd4173 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/HIR/Environment.ts lines 1277–1294
export function tryParseExternalFunction(
maybeExternalFunction: any,
): ExternalFunction {
const externalFunction = ExternalFunctionSchema.safeParse(
maybeExternalFunction,
);
if (externalFunction.success) {
return externalFunction.data;
}
CompilerError.throwInvalidConfig({
reason:
'Could not parse external function. Update React Compiler config to fix the error',
description: `${fromZodError(externalFunction.error)}`,
loc: null,
suggestions: null,
});
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does tryParseExternalFunction() do?
tryParseExternalFunction() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/HIR/Environment.ts.
Where is tryParseExternalFunction() defined?
tryParseExternalFunction() is defined in compiler/packages/babel-plugin-react-compiler/src/HIR/Environment.ts at line 1277.
What does tryParseExternalFunction() call?
tryParseExternalFunction() calls 1 function(s): throwInvalidConfig.
What calls tryParseExternalFunction()?
tryParseExternalFunction() 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