@@ -91,10 +91,8 @@ export function stubComponents(
91
91
transformVNodeArgs ( ( args , instance : ComponentInternalInstance | null ) => {
92
92
const [ nodeType , props , children , patchFlag , dynamicProps ] = args
93
93
const type = nodeType as VNodeTypes
94
- // args[0] can either be:
95
- // 1. a HTML tag (div, span...)
96
- // 2. An object of component options, such as { name: 'foo', render: [Function], props: {...} }
97
- // Depending what it is, we do different things.
94
+
95
+ // stub transition by default via config.global.stubs
98
96
if ( type === Transition && stubs [ 'transition' ] ) {
99
97
return [
100
98
createTransitionStub ( { name : 'transition-stub' , props : undefined } ) ,
@@ -103,6 +101,7 @@ export function stubComponents(
103
101
]
104
102
}
105
103
104
+ // stub transition-group by default via config.global.stubs
106
105
if ( type === TransitionGroup && stubs [ 'transition-group' ] ) {
107
106
return [
108
107
createTransitionStub ( {
@@ -114,6 +113,10 @@ export function stubComponents(
114
113
]
115
114
}
116
115
116
+ // args[0] can either be:
117
+ // 1. a HTML tag (div, span...)
118
+ // 2. An object of component options, such as { name: 'foo', render: [Function], props: {...} }
119
+ // Depending what it is, we do different things.
117
120
if (
118
121
isHTMLElement ( type ) ||
119
122
isCommentOrFragment ( type ) ||
0 commit comments