node2.expression.right.callee 容错

This commit is contained in:
Wang Kejun 2022-08-24 20:21:55 +08:00
parent 0a030db89d
commit a4171f36d1
1 changed files with 1 additions and 0 deletions

View File

@ -258,6 +258,7 @@ module.exports = (babel) => {
node2 &&
node2.expression &&
node2.expression.right &&
node2.expression.right.callee &&
(node2.expression.right.callee.name === 'OakPage' ||
node2.expression.right.callee.name ===
'OakComponent')