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