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:
parent
fa1322b00b
commit
871147260c
@ -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;
|
||||
|
||||
|
@ -1,3 +0,0 @@
|
||||
export default {
|
||||
dev: true
|
||||
};
|
@ -1,5 +0,0 @@
|
||||
{#each things as thing}
|
||||
|
||||
{/each}
|
||||
|
||||
{#each things as thing}{/each}
|
@ -1 +0,0 @@
|
||||
[]
|
Loading…
Reference in New Issue
Block a user