Skip to content

Commit 4ea065f

Browse files
authored
fix(plugin-vue-jsx): fix define call check (#1480)
1 parent 1892ffc commit 4ea065f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/plugin-vue-jsx/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ function parseComponentDecls(node, source) {
208208
*/
209209
function isDefineComponentCall(node) {
210210
return (
211+
node &&
211212
node.type === 'CallExpression' &&
212213
node.callee.type === 'Identifier' &&
213214
node.callee.name === 'defineComponent'

0 commit comments

Comments
 (0)