wrapWithRegisterInternalModule() — react Function Reference
Architecture documentation for the wrapWithRegisterInternalModule() function in wrappers.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD a6196272_81ef_6d15_0837_206c078a2121["wrapWithRegisterInternalModule()"] e393e1a8_f2ec_3bc9_7e1f_f5862b33575a["wrappers.js"] a6196272_81ef_6d15_0837_206c078a2121 -->|defined in| e393e1a8_f2ec_3bc9_7e1f_f5862b33575a 9ad20301_a9a9_10d0_57bf_8e549d1fed76["wrapWithTopLevelDefinitions()"] 9ad20301_a9a9_10d0_57bf_8e549d1fed76 -->|calls| a6196272_81ef_6d15_0837_206c078a2121 style a6196272_81ef_6d15_0837_206c078a2121 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
scripts/rollup/wrappers.js lines 32–51
function wrapWithRegisterInternalModule(source) {
return `\
'use strict';
if (
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===
'function'
) {
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
}
${source}
if (
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===
'function'
) {
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
}
`;
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does wrapWithRegisterInternalModule() do?
wrapWithRegisterInternalModule() is a function in the react codebase, defined in scripts/rollup/wrappers.js.
Where is wrapWithRegisterInternalModule() defined?
wrapWithRegisterInternalModule() is defined in scripts/rollup/wrappers.js at line 32.
What calls wrapWithRegisterInternalModule()?
wrapWithRegisterInternalModule() is called by 1 function(s): wrapWithTopLevelDefinitions.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free