Skip to content

Commit 508bed6

Browse files
authored
perf: remove unnecessary export checks (#798)
1 parent 3772be1 commit 508bed6

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

packages/common/refresh-runtime.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -653,10 +653,7 @@ export function validateRefreshBoundaryAndEnqueueUpdate(
653653

654654
function predicateOnExport(ignoredExports, moduleExports, predicate) {
655655
for (const key in moduleExports) {
656-
if (key === '__esModule') continue
657656
if (ignoredExports.includes(key)) continue
658-
const desc = Object.getOwnPropertyDescriptor(moduleExports, key)
659-
if (desc && desc.get) return key
660657
if (!predicate(key, moduleExports[key])) return key
661658
}
662659
return true

0 commit comments

Comments
 (0)