(bundleType)
| 281 | } |
| 282 | |
| 283 | function isProfilingBundleType(bundleType) { |
| 284 | switch (bundleType) { |
| 285 | case NODE_ES2015: |
| 286 | case FB_WWW_DEV: |
| 287 | case FB_WWW_PROD: |
| 288 | case NODE_DEV: |
| 289 | case NODE_PROD: |
| 290 | case BUN_DEV: |
| 291 | case BUN_PROD: |
| 292 | case RN_FB_DEV: |
| 293 | case RN_FB_PROD: |
| 294 | case RN_OSS_DEV: |
| 295 | case RN_OSS_PROD: |
| 296 | case ESM_DEV: |
| 297 | case ESM_PROD: |
| 298 | case BROWSER_SCRIPT: |
| 299 | case CJS_DTS: |
| 300 | case ESM_DTS: |
| 301 | return false; |
| 302 | case FB_WWW_PROFILING: |
| 303 | case NODE_PROFILING: |
| 304 | case RN_FB_PROFILING: |
| 305 | case RN_OSS_PROFILING: |
| 306 | return true; |
| 307 | default: |
| 308 | throw new Error(`Unknown type: ${bundleType}`); |
| 309 | } |
| 310 | } |
| 311 | |
| 312 | function getBundleTypeFlags(bundleType) { |
| 313 | const isFBWWWBundle = |