_interopRequireWildcard() — react Function Reference
Architecture documentation for the _interopRequireWildcard() function in ComponentWithCustomHook.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 6c57662c_0c57_5e34_600c_02fbf64fc4a9["_interopRequireWildcard()"] 3b36099f_432c_0140_5916_11c5ac50bbdd["ComponentWithCustomHook.js"] 6c57662c_0c57_5e34_600c_02fbf64fc4a9 -->|defined in| 3b36099f_432c_0140_5916_11c5ac50bbdd 6b794103_1e2c_e484_b930_9fa27db84004["_getRequireWildcardCache()"] 6c57662c_0c57_5e34_600c_02fbf64fc4a9 -->|calls| 6b794103_1e2c_e484_b930_9fa27db84004 style 6c57662c_0c57_5e34_600c_02fbf64fc4a9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-devtools-shared/src/hooks/__tests__/__source__/__compiled__/external/react-sources-extended/index-map/ComponentWithCustomHook.js lines 14–14
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
Domain
Subdomains
Source
Frequently Asked Questions
What does _interopRequireWildcard() do?
_interopRequireWildcard() is a function in the react codebase, defined in packages/react-devtools-shared/src/hooks/__tests__/__source__/__compiled__/external/react-sources-extended/index-map/ComponentWithCustomHook.js.
Where is _interopRequireWildcard() defined?
_interopRequireWildcard() is defined in packages/react-devtools-shared/src/hooks/__tests__/__source__/__compiled__/external/react-sources-extended/index-map/ComponentWithCustomHook.js at line 14.
What does _interopRequireWildcard() call?
_interopRequireWildcard() calls 1 function(s): _getRequireWildcardCache.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free