File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed
packages/runtime-core/src/helpers Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -111,18 +111,13 @@ function resolveAsset(
111
111
return Component
112
112
}
113
113
114
- if ( __DEV__ && warnMissing ) {
115
- const isResEmpty = ! res
116
- const isNameLateTag = isLateTag ( name )
117
-
118
- if ( ( isResEmpty && ! isNameLateTag ) || ( ! isResEmpty && isNameLateTag ) ) {
119
- const extra =
114
+ if ( __DEV__ && warnMissing && ( ( ! res && ! isLateTag ( name ) ) || ( res && isLateTag ( name ) ) ) ) {
115
+ const extra =
120
116
type === COMPONENTS
121
- ? `\nIf this is a native custom element, make sure to exclude it from ` +
117
+ ? `\nIf this is a native custom element, make sure to exclude it from ` +
122
118
`component resolution via compilerOptions.isCustomElement.`
123
- : ``
124
- warn ( `Failed to resolve ${ type . slice ( 0 , - 1 ) } : ${ name } ${ extra } ` )
125
- }
119
+ : ``
120
+ warn ( `Failed to resolve ${ type . slice ( 0 , - 1 ) } : ${ name } ${ extra } ` )
126
121
}
127
122
128
123
return res
You can’t perform that action at this time.
0 commit comments