@@ -63,12 +63,12 @@ function registerExportsForReactRefresh(
6363 // (This is important for legacy environments.)
6464 return
6565 }
66- for ( const key in moduleExports ) {
66+ for ( var key in moduleExports ) {
6767 if ( isSafeExport ( key ) ) {
6868 continue
6969 }
70- const exportValue = moduleExports [ key ]
71- const typeID = moduleID + ' %exports% ' + key
70+ var exportValue = moduleExports [ key ]
71+ var typeID = moduleID + ' %exports% ' + key
7272 RefreshRuntime . register ( exportValue , typeID )
7373 }
7474}
@@ -81,14 +81,14 @@ function isReactRefreshBoundary(moduleExports: unknown): boolean {
8181 // Exit if we can't iterate over exports.
8282 return false
8383 }
84- let hasExports = false
85- let areAllExportsComponents = true
86- for ( const key in moduleExports ) {
84+ var hasExports = false
85+ var areAllExportsComponents = true
86+ for ( var key in moduleExports ) {
8787 hasExports = true
8888 if ( isSafeExport ( key ) ) {
8989 continue
9090 }
91- const exportValue = moduleExports [ key ]
91+ var exportValue = moduleExports [ key ]
9292 if ( ! RefreshRuntime . isLikelyComponentType ( exportValue ) ) {
9393 areAllExportsComponents = false
9494 }
@@ -100,12 +100,12 @@ function shouldInvalidateReactRefreshBoundary(
100100 prevExports : unknown ,
101101 nextExports : unknown
102102) : boolean {
103- const prevSignature = getRefreshBoundarySignature ( prevExports )
104- const nextSignature = getRefreshBoundarySignature ( nextExports )
103+ var prevSignature = getRefreshBoundarySignature ( prevExports )
104+ var nextSignature = getRefreshBoundarySignature ( nextExports )
105105 if ( prevSignature . length !== nextSignature . length ) {
106106 return true
107107 }
108- for ( let i = 0 ; i < nextSignature . length ; i ++ ) {
108+ for ( var i = 0 ; i < nextSignature . length ; i ++ ) {
109109 if ( prevSignature [ i ] !== nextSignature [ i ] ) {
110110 return true
111111 }
@@ -114,25 +114,25 @@ function shouldInvalidateReactRefreshBoundary(
114114}
115115
116116function getRefreshBoundarySignature ( moduleExports : unknown ) : Array < unknown > {
117- const signature = [ ]
117+ var signature = [ ]
118118 signature . push ( RefreshRuntime . getFamilyByType ( moduleExports ) )
119119 if ( moduleExports == null || typeof moduleExports !== 'object' ) {
120120 // Exit if we can't iterate over exports.
121121 // (This is important for legacy environments.)
122122 return signature
123123 }
124- for ( const key in moduleExports ) {
124+ for ( var key in moduleExports ) {
125125 if ( isSafeExport ( key ) ) {
126126 continue
127127 }
128- const exportValue = moduleExports [ key ]
128+ var exportValue = moduleExports [ key ]
129129 signature . push ( key )
130130 signature . push ( RefreshRuntime . getFamilyByType ( exportValue ) )
131131 }
132132 return signature
133133}
134134
135- let isUpdateScheduled : boolean = false
135+ var isUpdateScheduled : boolean = false
136136function scheduleUpdate ( ) {
137137 if ( isUpdateScheduled ) {
138138 return
@@ -143,7 +143,7 @@ function scheduleUpdate() {
143143 }
144144
145145 isUpdateScheduled = true
146- setTimeout ( ( ) => {
146+ setTimeout ( function ( ) {
147147 isUpdateScheduled = false
148148
149149 // Only trigger refresh if the webpack HMR state is idle
0 commit comments