]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(compiler-core): generate helper at the top level
author三咲智子 Kevin Deng <sxzz@sxzz.moe>
Fri, 17 May 2024 12:14:26 +0000 (20:14 +0800)
committer三咲智子 Kevin Deng <sxzz@sxzz.moe>
Fri, 17 May 2024 12:14:26 +0000 (20:14 +0800)
packages/compiler-core/src/codegen.ts

index 58f697c9a8958095b9a0af26213b7ddc2b2c3570..b62367020f7090c3b4c19c49ab73f7178cd27cc8 100644 (file)
@@ -437,6 +437,7 @@ function genFunctionPreamble(ast: RootNode, context: CodegenContext) {
           CREATE_COMMENT,
           CREATE_TEXT,
           CREATE_STATIC,
+          HOIST_LAZY,
         ]
           .filter(helper => helpers.includes(helper))
           .map(aliasHelper)