Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions lib/runtime/RefreshUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ function getReactRefreshBoundarySignature(moduleExports) {
continue;
}

if (key !== 'default' && key[0] != key[0].toUpperCase()) {
continue;
}

signature.push(key);
signature.push(Refresh.getFamilyByType(moduleExports[key]));
}
Expand Down Expand Up @@ -117,6 +121,11 @@ function isReactRefreshBoundary(moduleExports) {
continue;
}

if (key !== 'default' && key[0] != key[0].toUpperCase()) {
areAllExportsComponents = false;
continue;
}

// We can (and have to) safely execute getters here,
// as Webpack manually assigns harmony exports to getters,
// without any side-effects attached.
Expand Down Expand Up @@ -155,6 +164,10 @@ function registerExportsForReactRefresh(moduleExports, moduleId) {
continue;
}

if (key !== 'default' && key[0] != key[0].toUpperCase()) {
continue;
}

var exportValue = moduleExports[key];
if (Refresh.isLikelyComponentType(exportValue)) {
var typeID = moduleId + ' %exports% ' + key;
Expand Down