We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16942e0 commit 4bb1feeCopy full SHA for 4bb1fee
lib/loader.auto-import.js
@@ -72,10 +72,10 @@ module.exports = function (content) {
72
73
const code = `\nimport {${comp}${hasComp === true && hasDir === true ? ',' : ''}${dir}} from 'quasar'\n` +
74
(hasComp === true
75
- ? `component.options.components = Object.assign({${comp}}, component.options.components || {})\n`
+ ? `component.options.components = Object.assign(component.options.components || {}, {${comp}})\n`
76
: '') +
77
(hasDir === true
78
- ? `component.options.directives = Object.assign({${dir}}, component.options.directives || {})\n`
+ ? `component.options.directives = Object.assign(component.options.directives || {}, {${dir}})\n`
79
: '')
80
81
return index === -1
0 commit comments