Skip to content

Commit

Permalink
fix(taroize): 第一个 wxml 标签后有注释可能报错
Browse files Browse the repository at this point in the history
  • Loading branch information
yuche committed Mar 28, 2019
1 parent 9fa119b commit ae59efd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/taroize/src/wxml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ function removEmptyTextAndComment (nodes: AllKindNode[]) {
return node.type === NodeType.Element
|| (node.type === NodeType.Text && node.content.trim().length !== 0)
|| node.type === NodeType.Comment
})
}).filter((node, index) => !(index === 0 && node.type === NodeType.Comment))
}

function parseText (node: Text) {
Expand Down

0 comments on commit ae59efd

Please sign in to comment.