Skip to content

Commit 8711472

Browse files
committed
always warn on empty block - fixes #2042
1 parent fa1322b commit 8711472

File tree

6 files changed

+0
-10
lines changed

6 files changed

+0
-10
lines changed

src/compile/nodes/shared/Node.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ export default class Node {
4949
}
5050

5151
warnIfEmptyBlock() {
52-
if (!this.component.compileOptions.dev) return;
5352
if (!/Block$/.test(this.type) || !this.children) return;
5453
if (this.children.length > 1) return;
5554

test/validator/samples/empty-block-dev/_config.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

test/validator/samples/empty-block-prod/input.svelte

Lines changed: 0 additions & 5 deletions
This file was deleted.

test/validator/samples/empty-block-prod/warnings.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)