fix(build): fix component resolution when disabling options API

fix #1688
This commit is contained in:
Evan You
2020-07-23 14:33:15 -04:00
parent ba17c871d8
commit a75b8a268f
3 changed files with 44 additions and 47 deletions

View File

@@ -381,9 +381,6 @@ export function applyOptions(
watch: watchOptions,
provide: provideOptions,
inject: injectOptions,
// assets
components,
directives,
// lifecycle
beforeMount,
mounted,
@@ -570,14 +567,6 @@ export function applyOptions(
}
}
// asset options
if (components) {
extend(instance.components, components)
}
if (directives) {
extend(instance.directives, directives)
}
// lifecycle options
if (!asMixin) {
callSyncHook('created', options, publicThis, globalMixins)