Skip to content

Commit 5bab43b

Browse files
author
Lenz Weber
committed
remove eagerness of RefreshUtils to reduce circular dependency errors
1 parent b9adfd2 commit 5bab43b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

lib/runtime/RefreshUtils.js

+13
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ function getReactRefreshBoundarySignature(moduleExports) {
5555
continue;
5656
}
5757

58+
if (key[0] != key[0].toUpperCase()) {
59+
continue;
60+
}
61+
5862
signature.push(key);
5963
signature.push(Refresh.getFamilyByType(moduleExports[key]));
6064
}
@@ -117,6 +121,11 @@ function isReactRefreshBoundary(moduleExports) {
117121
continue;
118122
}
119123

124+
if (key[0] != key[0].toUpperCase()) {
125+
areAllExportsComponents = false;
126+
continue;
127+
}
128+
120129
// We can (and have to) safely execute getters here,
121130
// as Webpack manually assigns harmony exports to getters,
122131
// without any side-effects attached.
@@ -155,6 +164,10 @@ function registerExportsForReactRefresh(moduleExports, moduleId) {
155164
continue;
156165
}
157166

167+
if (key[0] != key[0].toUpperCase()) {
168+
continue;
169+
}
170+
158171
var exportValue = moduleExports[key];
159172
if (Refresh.isLikelyComponentType(exportValue)) {
160173
var typeID = moduleId + ' %exports% ' + key;

0 commit comments

Comments
 (0)