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

Function getBundleTypeFlags

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

Source from the content-addressed store, hash-verified

310}
311
312function getBundleTypeFlags(bundleType) {
313 const isFBWWWBundle =
314 bundleType === FB_WWW_DEV ||
315 bundleType === FB_WWW_PROD ||
316 bundleType === FB_WWW_PROFILING;
317 const isRNBundle =
318 bundleType === RN_OSS_DEV ||
319 bundleType === RN_OSS_PROD ||
320 bundleType === RN_OSS_PROFILING ||
321 bundleType === RN_FB_DEV ||
322 bundleType === RN_FB_PROD ||
323 bundleType === RN_FB_PROFILING;
324
325 const isFBRNBundle =
326 bundleType === RN_FB_DEV ||
327 bundleType === RN_FB_PROD ||
328 bundleType === RN_FB_PROFILING;
329
330 const shouldStayReadable = isFBWWWBundle || isRNBundle || forcePrettyOutput;
331
332 return {
333 isFBWWWBundle,
334 isRNBundle,
335 isFBRNBundle,
336 shouldStayReadable,
337 };
338}
339
340function forbidFBJSImports() {
341 return {

Callers 1

createBundleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected