Skip to content

Commit cb02fe9

Browse files
committed
fix for-of
1 parent f526d3d commit cb02fe9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/common/refresh-runtime.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -547,8 +547,7 @@ function isLikelyComponentType(type) {
547547

548548
function isCompoundComponent(type) {
549549
if (!isPlainObject(type)) return false
550-
const keys = Object.keys(type)
551-
for (const key of keys) {
550+
for (const key in type) {
552551
if (!isLikelyComponentType(type[key])) return false
553552
}
554553
return true

0 commit comments

Comments
 (0)