fix(compiler-ssr): fix wrong attrs fallthrough on non-single-root v-if branches

fix #5140
This commit is contained in:
Evan You
2022-05-19 11:21:17 +08:00
parent e8ceac7a11
commit 516bc548fc
4 changed files with 80 additions and 22 deletions

View File

@@ -68,7 +68,7 @@ export interface DirectiveTransformResult {
ssrTagParts?: TemplateLiteral['elements']
}
// A structural directive transform is a technically a NodeTransform;
// A structural directive transform is technically also a NodeTransform;
// Only v-if and v-for fall into this category.
export type StructuralDirectiveTransform = (
node: ElementNode,