]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: reuse descriptor ast in compileScript inlineTemplate mode by default
authorEvan You <yyx990803@gmail.com>
Tue, 19 Dec 2023 10:02:28 +0000 (18:02 +0800)
committerEvan You <yyx990803@gmail.com>
Tue, 19 Dec 2023 10:06:04 +0000 (18:06 +0800)
packages/compiler-sfc/src/compileScript.ts

index 2f71e6f0aa9d33cc0f763b5c6b1a7d7a323b2209..5982b02ec34f6ab9a7ccebdaf4ab6b1e1f0ff166 100644 (file)
@@ -833,6 +833,7 @@ export function compileScript(
       // inline it right here
       const { code, ast, preamble, tips, errors } = compileTemplate({
         filename,
+        ast: sfc.template.ast,
         source: sfc.template.content,
         inMap: sfc.template.map,
         ...options.templateOptions,