Skip to content

Commit 19bc230

Browse files
committed
fix: spread keys
1 parent 5ec63e7 commit 19bc230

File tree

1 file changed

+3
-1
lines changed
  • packages/svelte/src/compiler/phases/2-analyze

1 file changed

+3
-1
lines changed

packages/svelte/src/compiler/phases/2-analyze/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,9 @@ export function analyze_component(root, source, options) {
438438
!runes &&
439439
// if they explicitly disabled runes, use the legacy behavior
440440
options.runes !== false &&
441-
!module.scope.references.keys().some((name) => ['$$props', '$$restProps'].includes(name)) &&
441+
![...module.scope.references.keys()].some((name) =>
442+
['$$props', '$$restProps'].includes(name)
443+
) &&
442444
!instance.ast.body.some(
443445
(node) =>
444446
node.type === 'LabeledStatement' ||

0 commit comments

Comments
 (0)