@@ -69,8 +69,8 @@ export function initClient() {
6969 error && error . digest
7070 ? error . digest
7171 : error && error . message
72- ? error . message
73- : String ( error ) ;
72+ ? error . message
73+ : String ( error ) ;
7474 console . error ( msg ) ;
7575 showError ( msg ) ;
7676 } ,
@@ -353,26 +353,26 @@ export function initClient() {
353353 // Register all evaluated components with react-refresh for Fast Refresh.
354354 // This creates stable "component families" so React can preserve state
355355 // across re-evaluations when component identity changes.
356- Object . keys ( globalThis . __webpack_module_cache__ ) . forEach ( function (
357- moduleId
358- ) {
359- var moduleExports = globalThis . __webpack_module_cache__ [ moduleId ] ;
360- var exports =
361- moduleExports . exports !== undefined
362- ? moduleExports . exports
363- : moduleExports ;
364- if ( exports && typeof exports === 'object' ) {
365- for ( var key in exports ) {
366- var exportValue = exports [ key ] ;
367- if ( isLikelyComponentType ( exportValue ) ) {
368- refreshRegister ( exportValue , moduleId + ' %exports% ' + key ) ;
356+ Object . keys ( globalThis . __webpack_module_cache__ ) . forEach (
357+ function ( moduleId ) {
358+ var moduleExports = globalThis . __webpack_module_cache__ [ moduleId ] ;
359+ var exports =
360+ moduleExports . exports !== undefined
361+ ? moduleExports . exports
362+ : moduleExports ;
363+ if ( exports && typeof exports === 'object' ) {
364+ for ( var key in exports ) {
365+ var exportValue = exports [ key ] ;
366+ if ( isLikelyComponentType ( exportValue ) ) {
367+ refreshRegister ( exportValue , moduleId + ' %exports% ' + key ) ;
368+ }
369369 }
370370 }
371+ if ( typeof exports === 'function' && isLikelyComponentType ( exports ) ) {
372+ refreshRegister ( exports , moduleId + ' %exports% default' ) ;
373+ }
371374 }
372- if ( typeof exports === 'function' && isLikelyComponentType ( exports ) ) {
373- refreshRegister ( exports , moduleId + ' %exports% default' ) ;
374- }
375- } ) ;
375+ ) ;
376376
377377 // Tell React about updated component families so it can
378378 // preserve state for components whose implementation changed.
0 commit comments