Skip to content

Commit

Permalink
fix(transformer):   在第一个直接时会被无视, close #3406
Browse files Browse the repository at this point in the history
  • Loading branch information
yuche committed Jun 13, 2019
1 parent d24b5f6 commit 4d14dd7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/taro-transformer-wx/src/jsx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,6 @@ function parseJSXChildren (
children: (t.JSXElement | t.JSXText | t.JSXExpressionContainer)[]
): string {
return children
.filter(child => {
return !(t.isJSXText(child) && child.value.trim() === '')
})
.reduce((str, child) => {
if (t.isJSXText(child)) {
const strings: string[] = []
Expand Down

0 comments on commit 4d14dd7

Please sign in to comment.