feat(compiler-core): support Suspense in templates

This commit is contained in:
Evan You
2019-10-16 17:40:00 -04:00
parent e97951dd2e
commit 4b2b29efa1
3 changed files with 123 additions and 117 deletions

View File

@@ -445,6 +445,8 @@ function parseTag(
if (tag === 'slot') tagType = ElementTypes.SLOT
else if (tag === 'template') tagType = ElementTypes.TEMPLATE
else if (tag === 'portal' || tag === 'Portal') tagType = ElementTypes.PORTAL
else if (tag === 'suspense' || tag === 'Suspense')
tagType = ElementTypes.SUSPENSE
}
return {