Skip to content

Commit 356bac6

Browse files
committedOct 29, 2019
fix(alita): 修复 组件 render null 没有jsx标签的时候 判断错误的bug
1 parent ad65ae4 commit 356bac6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/util/uast.js

+1
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ export function getFileInfo(ast) {
120120
ClassDeclaration: path => {
121121
const sc = path.node.superClass
122122
isClassComp = isReactComponent(sc)
123+
isRF = true
123124
},
124125

125126
JSXOpeningElement: path => {

0 commit comments

Comments
 (0)