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

Function isProfilingBundleType

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

Source from the content-addressed store, hash-verified

281}
282
283function 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
312function getBundleTypeFlags(bundleType) {
313 const isFBWWWBundle =

Callers 1

getPluginsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected