prevent boolean attributes breaking shapes inside estree-walker - fixes #961

pull/965/head
Rich Harris 8 years ago
parent b26be1ca24
commit f10e86f6e2

@ -72,15 +72,8 @@ function removeIndentation(
// We need to tell estree-walker that it should always
// look for an `else` block, otherwise it might get
// the wrong idea about the shape of each/if blocks
childKeys.EachBlock = [
'children',
'else'
];
childKeys.IfBlock = [
'children',
'else'
];
childKeys.EachBlock = childKeys.IfBlock = ['children', 'else'];
childKeys.Attribute = ['value'];
export default class Generator {
ast: Parsed;

@ -0,0 +1,3 @@
export default {
html: `<a href='/cool'>link</a>`
};

@ -0,0 +1,10 @@
<Link x href="/cool"/>
<script>
import Link from './Link.html';
export default {
components: {
Link
}
};
</script>
Loading…
Cancel
Save