Skip to content

Commit

Permalink
fix(transformer): 开发模式 text 组件也不换行,close #1831
Browse files Browse the repository at this point in the history
  • Loading branch information
yuche committed Jan 14, 2019
1 parent f1eab76 commit 5f2174a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/taro-transformer-wx/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5f2174a

Please sign in to comment.