Home / Function/ getRollupOutputOptions() — react Function Reference

getRollupOutputOptions() — react Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

scripts/rollup/build.js lines 203–223

function getRollupOutputOptions(
  outputPath,
  format,
  globals,
  globalName,
  bundleType
) {
  const isProduction = isProductionBundleType(bundleType);

  return {
    file: outputPath,
    format,
    globals,
    freeze: !isProduction,
    interop: getRollupInteropValue,
    name: globalName,
    sourcemap: false,
    esModule: false,
    exports: 'auto',
  };
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does getRollupOutputOptions() do?
getRollupOutputOptions() is a function in the react codebase, defined in scripts/rollup/build.js.
Where is getRollupOutputOptions() defined?
getRollupOutputOptions() is defined in scripts/rollup/build.js at line 203.
What does getRollupOutputOptions() call?
getRollupOutputOptions() calls 1 function(s): isProductionBundleType.
What calls getRollupOutputOptions()?
getRollupOutputOptions() 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