client.js (619B)
1'use strict'; 2 3var m = require('react-dom'); 4if (process.env.NODE_ENV === 'production') { 5 exports.createRoot = m.createRoot; 6 exports.hydrateRoot = m.hydrateRoot; 7} else { 8 var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; 9 exports.createRoot = function(c, o) { 10 i.usingClientEntryPoint = true; 11 try { 12 return m.createRoot(c, o); 13 } finally { 14 i.usingClientEntryPoint = false; 15 } 16 }; 17 exports.hydrateRoot = function(c, h, o) { 18 i.usingClientEntryPoint = true; 19 try { 20 return m.hydrateRoot(c, h, o); 21 } finally { 22 i.usingClientEntryPoint = false; 23 } 24 }; 25}