Home / Function/ getBundleTypeFlags() — react Function Reference

getBundleTypeFlags() — react Function Reference

Architecture documentation for the getBundleTypeFlags() function in build.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  c3469df7_bf7f_67ea_526d_74e1ae8376cd["getBundleTypeFlags()"]
  c80a1a72_0983_3915_42ad_1026a11c0a09["build.js"]
  c3469df7_bf7f_67ea_526d_74e1ae8376cd -->|defined in| c80a1a72_0983_3915_42ad_1026a11c0a09
  bb9629f0_8ad3_5155_4bf4_2cb0aa60d724["createBundle()"]
  bb9629f0_8ad3_5155_4bf4_2cb0aa60d724 -->|calls| c3469df7_bf7f_67ea_526d_74e1ae8376cd
  style c3469df7_bf7f_67ea_526d_74e1ae8376cd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

scripts/rollup/build.js lines 312–338

function getBundleTypeFlags(bundleType) {
  const isFBWWWBundle =
    bundleType === FB_WWW_DEV ||
    bundleType === FB_WWW_PROD ||
    bundleType === FB_WWW_PROFILING;
  const isRNBundle =
    bundleType === RN_OSS_DEV ||
    bundleType === RN_OSS_PROD ||
    bundleType === RN_OSS_PROFILING ||
    bundleType === RN_FB_DEV ||
    bundleType === RN_FB_PROD ||
    bundleType === RN_FB_PROFILING;

  const isFBRNBundle =
    bundleType === RN_FB_DEV ||
    bundleType === RN_FB_PROD ||
    bundleType === RN_FB_PROFILING;

  const shouldStayReadable = isFBWWWBundle || isRNBundle || forcePrettyOutput;

  return {
    isFBWWWBundle,
    isRNBundle,
    isFBRNBundle,
    shouldStayReadable,
  };
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does getBundleTypeFlags() do?
getBundleTypeFlags() is a function in the react codebase, defined in scripts/rollup/build.js.
Where is getBundleTypeFlags() defined?
getBundleTypeFlags() is defined in scripts/rollup/build.js at line 312.
What calls getBundleTypeFlags()?
getBundleTypeFlags() 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