GeezerVison is showing github.com — provide profiling bundle for react-reconciler (#19559) · react/react@b8fa09e
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: scripts/rollup/bundles.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -488,7 +488,7 @@ const bundles = [ |
488 | 488 |
|
489 | 489 | /******* React Reconciler *******/ |
490 | 490 | { |
491 | | - bundleTypes: [NODE_DEV, NODE_PROD], |
| 491 | + bundleTypes: [NODE_DEV, NODE_PROD, NODE_PROFILING], |
492 | 492 | moduleType: RECONCILER, |
493 | 493 | entry: 'react-reconciler', |
494 | 494 | global: 'ReactReconciler', |
|
Collapse file
Copy file name to clipboardExpand all lines: scripts/rollup/wrappers.js +14Lines changed: 14 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -289,6 +289,20 @@ module.exports = function $$$reconciler($$$hostConfig) { |
289 | 289 | var exports = {}; |
290 | 290 | ${source} |
291 | 291 | return exports; |
| 292 | +};`; |
| 293 | + }, |
| 294 | + |
| 295 | + /***************** NODE_PROFILING (reconciler only) *****************/ |
| 296 | + [NODE_PROFILING](source, globalName, filename, moduleType) { |
| 297 | + return `/** @license React v${reactVersion} |
| 298 | + * ${filename} |
| 299 | + * |
| 300 | +${license} |
| 301 | + */ |
| 302 | +module.exports = function $$$reconciler($$$hostConfig) { |
| 303 | + var exports = {}; |
| 304 | +${source} |
| 305 | + return exports; |
292 | 306 | };`; |
293 | 307 | }, |
294 | 308 | }; |
|