MCPcopy Index your code
hub / github.com/react/react / getRollupOutputOptions

Function getRollupOutputOptions

scripts/rollup/build.js:203–223  ·  view source on GitHub ↗
(
  outputPath,
  format,
  globals,
  globalName,
  bundleType
)

Source from the content-addressed store, hash-verified

201};
202
203function getRollupOutputOptions(
204 outputPath,
205 format,
206 globals,
207 globalName,
208 bundleType
209) {
210 const isProduction = isProductionBundleType(bundleType);
211
212 return {
213 file: outputPath,
214 format,
215 globals,
216 freeze: !isProduction,
217 interop: getRollupInteropValue,
218 name: globalName,
219 sourcemap: false,
220 esModule: false,
221 exports: 'auto',
222 };
223}
224
225function getFormat(bundleType) {
226 switch (bundleType) {

Callers 1

createBundleFunction · 0.85

Calls 1

isProductionBundleTypeFunction · 0.85

Tested by

no test coverage detected