Skip to content

Commit c872a8a

Browse files
committed
work around childKeys collision with Block comments and css (sveltejs#3977)
1 parent 0aceccc commit c872a8a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/compiler/compile/Component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ interface ComponentOptions {
4343
childKeys.EachBlock = childKeys.IfBlock = ['children', 'else'];
4444
childKeys.Attribute = ['value'];
4545
childKeys.ExportNamedDeclaration = ['declaration', 'specifiers'];
46+
childKeys.Block = ['children'];
4647

4748
export default class Component {
4849
stats: Stats;

0 commit comments

Comments
 (0)