From a1ffb2e6c310a0a0fabaa7230ab9892e0775d821 Mon Sep 17 00:00:00 2001 From: Qiyu8 Date: Tue, 20 Aug 2019 10:06:43 +0800 Subject: [PATCH] =?UTF-8?q?fix=20wx:if=E5=90=8E=E9=9D=A2=E6=9C=89=E7=A9=BA?= =?UTF-8?q?=E6=A0=BC=E7=9A=84=E9=97=AE=E9=A2=98=EF=BC=8C=E5=8F=A6=E5=A4=96?= =?UTF-8?q?wxs=E6=A0=87=E7=AD=BE=E4=B8=8D=E9=9C=80=E8=A6=81=E8=BF=9B?= =?UTF-8?q?=E8=A1=8Cformat=E6=93=8D=E4=BD=9C,=E5=90=A6=E5=88=99=E4=BC=9A?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/taroize/src/wxml.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/taroize/src/wxml.ts b/packages/taroize/src/wxml.ts index a646d9cc66ed..c49ffbbad497 100644 --- a/packages/taroize/src/wxml.ts +++ b/packages/taroize/src/wxml.ts @@ -301,8 +301,8 @@ export function parseWXML (dirPath: string, wxml?: string, parseImport?: boolean } { try { wxml = prettyPrint(wxml, { - max_char: 0, - unformatted: ['text'] + indent_char: 0, + unformatted: ['text', 'wxs'] }) } catch (error) { //