mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
provide profiling bundle for react-reconciler (#19559)
This commit is contained in:
@@ -488,7 +488,7 @@ const bundles = [
|
||||
|
||||
/******* React Reconciler *******/
|
||||
{
|
||||
bundleTypes: [NODE_DEV, NODE_PROD],
|
||||
bundleTypes: [NODE_DEV, NODE_PROD, NODE_PROFILING],
|
||||
moduleType: RECONCILER,
|
||||
entry: 'react-reconciler',
|
||||
global: 'ReactReconciler',
|
||||
|
||||
@@ -289,6 +289,20 @@ module.exports = function $$$reconciler($$$hostConfig) {
|
||||
var exports = {};
|
||||
${source}
|
||||
return exports;
|
||||
};`;
|
||||
},
|
||||
|
||||
/***************** NODE_PROFILING (reconciler only) *****************/
|
||||
[NODE_PROFILING](source, globalName, filename, moduleType) {
|
||||
return `/** @license React v${reactVersion}
|
||||
* ${filename}
|
||||
*
|
||||
${license}
|
||||
*/
|
||||
module.exports = function $$$reconciler($$$hostConfig) {
|
||||
var exports = {};
|
||||
${source}
|
||||
return exports;
|
||||
};`;
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user