From 4d14dd728c690ca2fd5997e476d58d71f476b362 Mon Sep 17 00:00:00 2001 From: yuche Date: Thu, 13 Jun 2019 14:20:13 +0800 Subject: [PATCH] =?UTF-8?q?fix(transformer):=20 =20=E5=9C=A8=E7=AC=AC?= =?UTF-8?q?=E4=B8=80=E4=B8=AA=E7=9B=B4=E6=8E=A5=E6=97=B6=E4=BC=9A=E8=A2=AB?= =?UTF-8?q?=E6=97=A0=E8=A7=86,=20close=20#3406?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/taro-transformer-wx/src/jsx.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/taro-transformer-wx/src/jsx.ts b/packages/taro-transformer-wx/src/jsx.ts index 668d417a047f..637de1dc0f88 100644 --- a/packages/taro-transformer-wx/src/jsx.ts +++ b/packages/taro-transformer-wx/src/jsx.ts @@ -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[] = []