2
0
Эх сурвалжийг харах

fix(compiler-core): generate helper at the top level

三咲智子 Kevin Deng 2 жил өмнө
parent
commit
36148a46a3

+ 1 - 0
packages/compiler-core/src/codegen.ts

@@ -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)