From: Cédric Exbrayat Date: Tue, 23 Mar 2021 09:17:15 +0000 (+0100) Subject: fix: add display name for suspense component (#3312) X-Git-Tag: v3.0.8~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b3a9a1f5225fb734d16ffe2d596f457e9c47cec;p=thirdparty%2Fvuejs%2Fcore.git fix: add display name for suspense component (#3312) --- diff --git a/packages/runtime-core/src/components/Suspense.ts b/packages/runtime-core/src/components/Suspense.ts index 0ec78125b2..7510d78710 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