From ba1bab977d51a341296c474237393a58237045c8 Mon Sep 17 00:00:00 2001 From: Evan You Date: Tue, 21 Nov 2023 22:30:47 +0800 Subject: [PATCH] feat: support template AST reuse from Vue 3.4 parser --- packages/plugin-vue/src/template.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/plugin-vue/src/template.ts b/packages/plugin-vue/src/template.ts index d3a6350d..8344d92e 100644 --- a/packages/plugin-vue/src/template.ts +++ b/packages/plugin-vue/src/template.ts @@ -168,6 +168,8 @@ export function resolveTemplateCompilerOptions( return { ...options.template, id, + // @ts-ignore TODO remove ignore when dep is updated to 3.4 + ast: descriptor.template?.ast, filename, scoped: hasScoped, slotted: descriptor.slotted,