diff --git a/packages/plugin-vue-jsx/index.js b/packages/plugin-vue-jsx/index.js index 40ec3eeb62ce60..6e9546be103646 100644 --- a/packages/plugin-vue-jsx/index.js +++ b/packages/plugin-vue-jsx/index.js @@ -208,6 +208,7 @@ function parseComponentDecls(node, source) { */ function isDefineComponentCall(node) { return ( + node && node.type === 'CallExpression' && node.callee.type === 'Identifier' && node.callee.name === 'defineComponent'