GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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
Filter options
  • scripts/rollup
    • bundles.js
    • wrappers.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎scripts/rollup/bundles.js‎

Copy file name to clipboardExpand all lines: scripts/rollup/bundles.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ const bundles = [
488488

489489
/******* React Reconciler *******/
490490
{
491-
bundleTypes: [NODE_DEV, NODE_PROD],
491+
bundleTypes: [NODE_DEV, NODE_PROD, NODE_PROFILING],
492492
moduleType: RECONCILER,
493493
entry: 'react-reconciler',
494494
global: 'ReactReconciler',
Collapse file

‎scripts/rollup/wrappers.js‎

Copy file name to clipboardExpand all lines: scripts/rollup/wrappers.js
+14Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,20 @@ module.exports = function $$$reconciler($$$hostConfig) {
289289
var exports = {};
290290
${source}
291291
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;
292306
};`;
293307
},
294308
};

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.