Skip to content

Commit

Permalink
fix(alita): 修复 组件 render null 没有jsx标签的时候 判断错误的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ykforerlang committed Oct 29, 2019
1 parent ad65ae4 commit 356bac6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/util/uast.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ export function getFileInfo(ast) {
ClassDeclaration: path => {
const sc = path.node.superClass
isClassComp = isReactComponent(sc)
isRF = true
},

JSXOpeningElement: path => {
Expand Down

0 comments on commit 356bac6

Please sign in to comment.