omit attributes for SSR – fixes #163

pull/169/head
Rich-Harris 8 years ago
parent 941de39523
commit 284224cb4f

@ -174,6 +174,8 @@ export default function compile ( source, { filename }) {
let element = `<${node.name}`;
node.attributes.forEach( attribute => {
if ( attribute.type !== 'Attribute' ) return;
let str = ` ${attribute.name}`;
if ( attribute.value !== true ) {

@ -0,0 +1 @@
<button on:click='set({ foo: "bar" })'>click me</button>
Loading…
Cancel
Save