Skip to content

Commit

Permalink
fix(plugin-vue-jsx): fix define call check (#1480)
Browse files Browse the repository at this point in the history
  • Loading branch information
tocurd committed Jan 11, 2021
1 parent 4ced3d3 commit f5b2922
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/plugin-vue-jsx/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ function parseComponentDecls(node, source) {
*/
function isDefineComponentCall(node) {
return (
node &&
node.type === 'CallExpression' &&
node.callee.type === 'Identifier' &&
node.callee.name === 'defineComponent'
Expand Down

0 comments on commit f5b2922

Please sign in to comment.