Skip to content

Commit 5d68fbd

Browse files
committed
fix: Revert "feat: support template AST reuse from Vue 3.4 parser"
This reverts commit ba1bab9. Fixes #322 It seems that the AST returned from https://github.com/vuejs/core/blob/a41c5f1f4367a9f41bcdb8c4e02f54b2378e577d/packages/compiler-sfc/src/parse.ts#L133-L139 gets reused in https://github.com/vitejs/vite-plugin-vue/blob/f75de2e5284af6036efa45d5c9ec37757485e3a0/packages/plugin-vue/src/template.ts#L186-L190, resulting in the second `parse` pass (called with real user options) being skipped. TODO: investigate the root cause further later and re-enable the optimization.
1 parent 2b33c32 commit 5d68fbd

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

packages/plugin-vue/src/template.ts

-2
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,6 @@ export function resolveTemplateCompilerOptions(
186186
return {
187187
...options.template,
188188
id,
189-
// @ts-ignore TODO remove ignore when dep is updated to 3.4
190-
ast: descriptor.template?.ast,
191189
filename,
192190
scoped: hasScoped,
193191
slotted: descriptor.slotted,

0 commit comments

Comments
 (0)