@@ -41,7 +41,10 @@ __DEV__ &&
4141 _key ++
4242 )
4343 args [ _key - 1 ] = arguments [ _key ] ;
44- printWarning ( "warn" , format , args ) ;
44+ if ( enableRemoveConsolePatches ) {
45+ var _console ;
46+ ( _console = console ) . warn . apply ( _console , [ format ] . concat ( args ) ) ;
47+ } else printWarning ( "warn" , format , args ) ;
4548 }
4649 function error$jscomp$0 ( format ) {
4750 for (
@@ -52,18 +55,22 @@ __DEV__ &&
5255 _key2 ++
5356 )
5457 args [ _key2 - 1 ] = arguments [ _key2 ] ;
55- printWarning ( "error" , format , args ) ;
58+ if ( enableRemoveConsolePatches ) {
59+ var _console2 ;
60+ ( _console2 = console ) . error . apply ( _console2 , [ format ] . concat ( args ) ) ;
61+ } else printWarning ( "error" , format , args ) ;
5662 }
5763 function printWarning ( level , format , args ) {
58- level =
59- require ( "react" ) . __CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE ;
60- null != level &&
61- level . getCurrentStack &&
62- ( ( level = level . getCurrentStack ( ) ) ,
63- "" !== level && ( ( format += "%s" ) , args . push ( level ) ) ) ;
64- args . unshift ( format ) ;
65- args . unshift ( ! 1 ) ;
66- warningWWW . apply ( null , args ) ;
64+ enableRemoveConsolePatches ||
65+ ( ( level =
66+ require ( "react" ) . __CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE ) ,
67+ null != level &&
68+ level . getCurrentStack &&
69+ ( ( level = level . getCurrentStack ( ) ) ,
70+ "" !== level && ( ( format += "%s" ) , args . push ( level ) ) ) ,
71+ args . unshift ( format ) ,
72+ args . unshift ( ! 1 ) ,
73+ warningWWW . apply ( null , args ) ) ;
6774 }
6875 function warnNoop ( publicInstance , callerName ) {
6976 publicInstance =
@@ -1139,6 +1146,8 @@ __DEV__ &&
11391146 REACT_TRACING_MARKER_TYPE = Symbol . for ( "react.tracing_marker" ) ,
11401147 REACT_VIEW_TRANSITION_TYPE = Symbol . for ( "react.view_transition" ) ,
11411148 MAYBE_ITERATOR_SYMBOL = Symbol . iterator ,
1149+ enableRemoveConsolePatches =
1150+ require ( "ReactFeatureFlags" ) . enableRemoveConsolePatches ,
11421151 warningWWW = require ( "warning" ) ,
11431152 didWarnStateUpdateForUnmountedComponent = { } ,
11441153 ReactNoopUpdateQueue = {
@@ -1947,7 +1956,7 @@ __DEV__ &&
19471956 exports . useTransition = function ( ) {
19481957 return resolveDispatcher ( ) . useTransition ( ) ;
19491958 } ;
1950- exports . version = "19.1.0-www-classic-886c5ad9-20250115 " ;
1959+ exports . version = "19.1.0-www-classic-18eaf51b-20250118 " ;
19511960 "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
19521961 "function" ===
19531962 typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ . registerInternalModuleStop &&
0 commit comments