Skip to content

Commit

Permalink
fix: ensure reuse AST in non-inline mode
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Dec 19, 2023
1 parent 3027021 commit 5e4c710
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,8 @@ async function doCompileTemplate(
let { code, errors } = store.compiler.compileTemplate({
isProd: false,
...store.options?.template,
// @ts-ignore TODO remove ignore in 3.4
ast: descriptor.template!.ast,
source: descriptor.template!.content,
filename: descriptor.filename,
id,
Expand Down

0 comments on commit 5e4c710

Please sign in to comment.