always warn on empty block - fixes #2042

pull/2092/head
Richard Harris 6 years ago
parent fa1322b00b
commit 871147260c

@ -49,7 +49,6 @@ export default class Node {
} }
warnIfEmptyBlock() { warnIfEmptyBlock() {
if (!this.component.compileOptions.dev) return;
if (!/Block$/.test(this.type) || !this.children) return; if (!/Block$/.test(this.type) || !this.children) return;
if (this.children.length > 1) return; if (this.children.length > 1) return;

@ -1,3 +0,0 @@
export default {
dev: true
};

@ -1,5 +0,0 @@
{#each things as thing}
{/each}
{#each things as thing}{/each}
Loading…
Cancel
Save