isProfilingBundleType() — react Function Reference
Architecture documentation for the isProfilingBundleType() function in build.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 1e6f68c9_edd9_9b40_828d_221bec05a2f7["isProfilingBundleType()"] c80a1a72_0983_3915_42ad_1026a11c0a09["build.js"] 1e6f68c9_edd9_9b40_828d_221bec05a2f7 -->|defined in| c80a1a72_0983_3915_42ad_1026a11c0a09 67c68ebd_67d3_ae9b_4fd2_ce22eb678392["getPlugins()"] 67c68ebd_67d3_ae9b_4fd2_ce22eb678392 -->|calls| 1e6f68c9_edd9_9b40_828d_221bec05a2f7 style 1e6f68c9_edd9_9b40_828d_221bec05a2f7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
scripts/rollup/build.js lines 283–310
function isProfilingBundleType(bundleType) {
switch (bundleType) {
case NODE_ES2015:
case FB_WWW_DEV:
case FB_WWW_PROD:
case NODE_DEV:
case NODE_PROD:
case BUN_DEV:
case BUN_PROD:
case RN_FB_DEV:
case RN_FB_PROD:
case RN_OSS_DEV:
case RN_OSS_PROD:
case ESM_DEV:
case ESM_PROD:
case BROWSER_SCRIPT:
case CJS_DTS:
case ESM_DTS:
return false;
case FB_WWW_PROFILING:
case NODE_PROFILING:
case RN_FB_PROFILING:
case RN_OSS_PROFILING:
return true;
default:
throw new Error(`Unknown type: ${bundleType}`);
}
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does isProfilingBundleType() do?
isProfilingBundleType() is a function in the react codebase, defined in scripts/rollup/build.js.
Where is isProfilingBundleType() defined?
isProfilingBundleType() is defined in scripts/rollup/build.js at line 283.
What calls isProfilingBundleType()?
isProfilingBundleType() is called by 1 function(s): getPlugins.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free