| 310 | } |
| 311 | |
| 312 | function 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 | |
| 340 | function forbidFBJSImports() { |
| 341 | return { |