File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
// Importing these types declares them, so they are available globally
4
4
5
- declare type Component = Object // eslint-disable-line no-undef
5
+ declare type Component = Object | Function // eslint-disable-line no-undef
6
6
declare type VNode = Object // eslint-disable-line no-undef
7
7
declare type SlotValue = Component | string | Array < Component > | Array < string >
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ export default function createInstance (
55
55
56
56
addEventLogger ( vue )
57
57
58
- const Constructor = vue . extend ( component )
58
+ const Constructor = ( typeof component === 'function' && component . prototype instanceof Vue ) ? component : vue . extend ( component )
59
59
60
60
const instanceOptions = { ...options , propsData : { ...options . propsData } }
61
61
deleteoptions ( instanceOptions )
You can’t perform that action at this time.
0 commit comments