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

Function getFormat

scripts/rollup/build.js:225–251  ·  view source on GitHub ↗
(bundleType)

Source from the content-addressed store, hash-verified

223}
224
225function getFormat(bundleType) {
226 switch (bundleType) {
227 case NODE_ES2015:
228 case NODE_DEV:
229 case NODE_PROD:
230 case NODE_PROFILING:
231 case BUN_DEV:
232 case BUN_PROD:
233 case FB_WWW_DEV:
234 case FB_WWW_PROD:
235 case FB_WWW_PROFILING:
236 case RN_OSS_DEV:
237 case RN_OSS_PROD:
238 case RN_OSS_PROFILING:
239 case RN_FB_DEV:
240 case RN_FB_PROD:
241 case RN_FB_PROFILING:
242 case CJS_DTS:
243 return `cjs`;
244 case ESM_DEV:
245 case ESM_PROD:
246 case ESM_DTS:
247 return `es`;
248 case BROWSER_SCRIPT:
249 return `iife`;
250 }
251}
252
253function isProductionBundleType(bundleType) {
254 switch (bundleType) {

Callers 1

createBundleFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected