Skip to content

Commit

Permalink
fix: ignore comments for implicit children prop
Browse files Browse the repository at this point in the history
  • Loading branch information
dummdidumm committed Feb 7, 2024
1 parent 3d61533 commit 19694d6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export function handleImplicitChildren(componentNode: BaseNode, component: Inlin
continue;
}
}
if (child.type === 'Text' && child.data.trim() === '') {
if (child.type === 'Comment' || (child.type === 'Text' && child.data.trim() === '')) {
continue;
}
if (child.type !== 'SnippetBlock') {
Expand Down

0 comments on commit 19694d6

Please sign in to comment.