@@ -17,12 +17,7 @@ import { validateSlots } from './validate-slots'
17
17
import createScopedSlots from './create-scoped-slots'
18
18
import { createStubsFromStubsObject } from './create-component-stubs'
19
19
import { patchCreateElement } from './patch-create-element'
20
- import {
21
- isReservedTag ,
22
- isConstructor ,
23
- isDynamicComponent ,
24
- isComponentOptions
25
- } from 'shared/validators'
20
+ import { isConstructor } from 'shared/validators'
26
21
27
22
function vueExtendUnsupportedOption ( option : string ) {
28
23
return `options.${ option } is not supported for ` +
@@ -45,9 +40,6 @@ export default function createInstance (
45
40
options : Options ,
46
41
_Vue : Component
47
42
) : Component {
48
- // make sure all extends are based on this instance
49
- _Vue . options . _base = _Vue
50
-
51
43
if (
52
44
VUE_VERSION < 2.3 && isConstructor ( component )
53
45
) {
@@ -78,7 +70,11 @@ export default function createInstance (
78
70
patchCreateElement ( _Vue , stubComponentsObject , options . shouldProxy )
79
71
80
72
if ( componentOptions . functional ) {
81
- componentOptions = createFunctionalComponent ( componentOptions , options , _Vue )
73
+ componentOptions = createFunctionalComponent (
74
+ componentOptions ,
75
+ options ,
76
+ _Vue
77
+ )
82
78
} else if ( options . context ) {
83
79
throwError (
84
80
`mount.context can only be used when mounting a ` +
@@ -90,6 +86,7 @@ export default function createInstance (
90
86
compileTemplate ( componentOptions )
91
87
}
92
88
89
+ // make sure all extends are based on this instance
93
90
componentOptions . _base = _Vue
94
91
95
92
const Constructor = _Vue . extend ( componentOptions ) . extend ( instanceOptions )
0 commit comments