fix: spread `keys`

pull/16232/head
paoloricciuti 3 months ago
parent 5ec63e7809
commit 19bc230b22

@ -438,7 +438,9 @@ export function analyze_component(root, source, options) {
!runes && !runes &&
// if they explicitly disabled runes, use the legacy behavior // if they explicitly disabled runes, use the legacy behavior
options.runes !== false && options.runes !== false &&
!module.scope.references.keys().some((name) => ['$$props', '$$restProps'].includes(name)) && ![...module.scope.references.keys()].some((name) =>
['$$props', '$$restProps'].includes(name)
) &&
!instance.ast.body.some( !instance.ast.body.some(
(node) => (node) =>
node.type === 'LabeledStatement' || node.type === 'LabeledStatement' ||

Loading…
Cancel
Save