Skip to content

Commit df11a8e

Browse files
committed
Treat Vue.mixin as components
1 parent 8761bde commit df11a8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ module.exports = {
381381
callee.object.type === 'Identifier' &&
382382
callee.object.name === 'Vue' &&
383383
callee.property.type === 'Identifier' &&
384-
callee.property.name === 'component' &&
384+
(callee.property.name === 'component' || callee.property.name === 'mixin') &&
385385
node.arguments.length &&
386386
node.arguments.slice(-1)[0].type === 'ObjectExpression'
387387

0 commit comments

Comments
 (0)