Skip to content

Commit

Permalink
fix(taroize): 使用组件重复添加
Browse files Browse the repository at this point in the history
  • Loading branch information
yuche authored and luckyadam committed Nov 19, 2018
1 parent 061311c commit 1905fe7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/taroize/src/wxml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export function parseWXML (wxml?: string): {
wxses: WXS[],
wxml?: t.Node
} {
usedComponents.clear()
let wxses: WXS[] = []
if (!wxml) {
return {
Expand Down Expand Up @@ -116,7 +117,7 @@ export function parseWXML (wxml?: string): {
if (!jsxName.isJSXIdentifier()) {
return
}
if (jsxName.node.name === 'wxs') {
if (jsxName.node.name === 'Wxs') {
wxses.push(getWXS(attrs.map(a => a.node), path))
}
}
Expand Down

0 comments on commit 1905fe7

Please sign in to comment.