break declaration grouping on non-declaration nodes (fixes #2022)

pull/7738/head
John Chesley 7 years ago
parent 1bb1294c51
commit 3ee7938d34

@ -865,7 +865,7 @@ export default class Component {
}
} else {
if (node.type !== 'ExportNamedDeclaration') {
if (!parent) current_group = null;
if (!parent || parent.type === 'Program') current_group = null;
}
}
},

@ -1,7 +1,6 @@
<script>
export let x;
export let x, y
export let y;
$: y = x;
export let z;
Loading…
Cancel
Save