Parcourir la source

dx(runtime-core): log the component object when warning about missing template/render function (#10263)

skirtle il y a 1 an
Parent
commit
7d4e5750ba
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      packages/runtime-core/src/component.ts

+ 1 - 1
packages/runtime-core/src/component.ts

@@ -1006,7 +1006,7 @@ export function finishComponentSetup(
                 : ``) /* should not happen */,
       )
     } else {
-      warn(`Component is missing template or render function.`)
+      warn(`Component is missing template or render function: `, Component)
     }
   }
 }