From 5f2174ab7c902c05daa54451d33cc41b81f51a9b Mon Sep 17 00:00:00 2001 From: yuche Date: Mon, 14 Jan 2019 14:42:05 +0800 Subject: [PATCH] =?UTF-8?q?fix(transformer):=20=E5=BC=80=E5=8F=91=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=20text=20=E7=BB=84=E4=BB=B6=E4=B9=9F=E4=B8=8D?= =?UTF-8?q?=E6=8D=A2=E8=A1=8C=EF=BC=8Cclose=20#1831?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/taro-transformer-wx/src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/taro-transformer-wx/src/index.ts b/packages/taro-transformer-wx/src/index.ts index d3d82b6d286a..36899eda3ad8 100644 --- a/packages/taro-transformer-wx/src/index.ts +++ b/packages/taro-transformer-wx/src/index.ts @@ -550,7 +550,8 @@ export default function transform (options: Options): TransformResult { result.ast = ast result.compressedTemplate = result.template result.template = prettyPrint(result.template, { - max_char: 0 + max_char: 0, + unformatted: ['text'] }).replace(lessThanSignPlacehold, '<') result.imageSrcs = Array.from(imageSource) return result