createClientReferencesForExports() — react Function Reference
Architecture documentation for the createClientReferencesForExports() function in TurbopackMock.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD b87ed3f3_05cd_47b8_46b5_06ab458af55f["createClientReferencesForExports()"] 0125a513_b38f_0d90_692f_a7282612ad13["TurbopackMock.js"] b87ed3f3_05cd_47b8_46b5_06ab458af55f -->|defined in| 0125a513_b38f_0d90_692f_a7282612ad13 style b87ed3f3_05cd_47b8_46b5_06ab458af55f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-server-dom-turbopack/src/__tests__/utils/TurbopackMock.js lines 96–126
const createClientReferencesForExports = ({exports, async}) => {
turbopackClientMap[path] = {
id: idx,
chunks,
name: '*',
async: true,
};
if (options.forceClientModuleProxy) {
return createClientModuleProxy(path);
}
if (typeof exports === 'object') {
const references = {};
for (const name in exports) {
const id = path + '#' + name;
turbopackClientMap[path + '#' + name] = {
id: idx,
chunks,
name: name,
async,
};
references[name] = registerClientReference(() => {}, id, name);
}
return references;
}
return registerClientReference(() => {}, path, '*');
};
Domain
Subdomains
Source
Frequently Asked Questions
What does createClientReferencesForExports() do?
createClientReferencesForExports() is a function in the react codebase, defined in packages/react-server-dom-turbopack/src/__tests__/utils/TurbopackMock.js.
Where is createClientReferencesForExports() defined?
createClientReferencesForExports() is defined in packages/react-server-dom-turbopack/src/__tests__/utils/TurbopackMock.js at line 96.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free