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