Skip to content

Commit a7b5ee6

Browse files
committed
Treat Vue.mixin as components
1 parent 3db7b13 commit a7b5ee6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ module.exports = {
370370
callee.object.type === 'Identifier' &&
371371
callee.object.name === 'Vue' &&
372372
callee.property.type === 'Identifier' &&
373-
callee.property.name === 'component' &&
373+
(callee.property.name === 'component' || callee.property.name === 'mixin') &&
374374
node.arguments.length &&
375375
node.arguments.slice(-1)[0].type === 'ObjectExpression'
376376

0 commit comments

Comments
 (0)