diff --git a/packages/runtime-core/src/helpers/resolveAssets.ts b/packages/runtime-core/src/helpers/resolveAssets.ts index bb38fb380ef..281a452df9a 100644 --- a/packages/runtime-core/src/helpers/resolveAssets.ts +++ b/packages/runtime-core/src/helpers/resolveAssets.ts @@ -111,12 +111,16 @@ function resolveAsset( return Component } - if (__DEV__ && warnMissing && ((!res && !isLateTag(name)) || (res && isLateTag(name)))) { + if ( + __DEV__ && + warnMissing && + ((!res && !isLateTag(name)) || (res && isLateTag(name))) + ) { const extra = - type === COMPONENTS - ? `\nIf this is a native custom element, make sure to exclude it from ` + - `component resolution via compilerOptions.isCustomElement.` - : `` + type === COMPONENTS + ? `\nIf this is a native custom element, make sure to exclude it from ` + + `component resolution via compilerOptions.isCustomElement.` + : `` warn(`Failed to resolve ${type.slice(0, -1)}: ${name}${extra}`) }