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 887ec90 commit d9efc6aCopy full SHA for d9efc6a
src/core/util/options.js
@@ -200,6 +200,7 @@ const defaultStrat = function (parentVal: any, childVal: any): any {
200
function normalizeComponents (options: Object) {
201
if (options.components) {
202
const components = options.components
203
+ const normalized = options.components = {}
204
let def
205
for (const key in components) {
206
const lower = key.toLowerCase()
@@ -211,9 +212,7 @@ function normalizeComponents (options: Object) {
211
212
continue
213
}
214
def = components[key]
- if (isPlainObject(def)) {
215
- components[key] = Vue.extend(def)
216
- }
+ normalized[key] = isPlainObject(def) ? Vue.extend(def) : def
217
218
219
0 commit comments