0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-29 08:32:05 +01:00

always warn on empty block - fixes #2042

This commit is contained in:
Richard Harris 2019-02-17 12:35:17 -05:00
parent fa1322b00b
commit 871147260c
6 changed files with 0 additions and 10 deletions

View File

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

View File

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

View File

@ -1,5 +0,0 @@
{#each things as thing}
{/each}
{#each things as thing}{/each}