Skip to content

Commit a6f6461

Browse files
author
Brian Vaughn
committed
Added new Rollup bundle config option: wrapWithModuleBoundaries
This flag identifies certain modules (e.g. react, react-dom, scheduler) that should self-report their module boundaries to React DevTools for Scheduling Profiler purposes. Note that this flag only applies to DEV and PROFILE bundle types (not PRODUCTION). Also note that this change does not affect modules with wrapWithModuleBoundaries:false (e.g. server renderering, test renderer, jsx transform).
1 parent 6764526 commit a6f6461

File tree

3 files changed

+91
-19
lines changed

3 files changed

+91
-19
lines changed

scripts/rollup/build.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,8 @@ function getPlugins(
440440
bundleType,
441441
globalName,
442442
filename,
443-
moduleType
443+
moduleType,
444+
bundle.wrapWithModuleBoundaries
444445
);
445446
},
446447
},

0 commit comments

Comments
 (0)