Skip to content

Commit

Permalink
feat(taroize): 支持解析多个根节点的 wxml
Browse files Browse the repository at this point in the history
  • Loading branch information
yuche authored and luckyadam committed Nov 19, 2018
1 parent 46736d8 commit 074aaff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/taroize/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,6 @@ export const DEFAULT_Component_SET = new Set<string>([
'MovableArea',
'MovableView',
'FunctionalPageNavigator',
'Ad'
'Ad',
'Block'
])
2 changes: 2 additions & 0 deletions packages/taroize/src/wxml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ function hydrate (file: t.File) {
return t.isJSXExpressionContainer(children)
? children.expression
: children
} else {
return jsx
}
}
}
Expand Down

0 comments on commit 074aaff

Please sign in to comment.