From 3b3a9a1f5225fb734d16ffe2d596f457e9c47cec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Exbrayat?= Date: Tue, 23 Mar 2021 10:17:15 +0100 Subject: [PATCH] fix: add display name for suspense component (#3312) --- packages/runtime-core/src/components/Suspense.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/runtime-core/src/components/Suspense.ts b/packages/runtime-core/src/components/Suspense.ts index 0ec78125b..7510d7871 100644 --- a/packages/runtime-core/src/components/Suspense.ts +++ b/packages/runtime-core/src/components/Suspense.ts @@ -33,6 +33,7 @@ export const isSuspense = (type: any): boolean => type.__isSuspense // in the compiler, but internally it's a special built-in type that hooks // directly into the renderer. export const SuspenseImpl = { + name: 'Suspense', // In order to make Suspense tree-shakable, we need to avoid importing it // directly in the renderer. The renderer checks for the __isSuspense flag // on a vnode's type and calls the `process` method, passing in renderer