Skip to content

Commit f5b2922

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

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: 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)