diff --git a/packages/compiler-ssr/src/index.ts b/packages/compiler-ssr/src/index.ts index c04529f993e..6b981f18899 100644 --- a/packages/compiler-ssr/src/index.ts +++ b/packages/compiler-ssr/src/index.ts @@ -51,6 +51,7 @@ export function compile( transform(ast, { ...options, + hoistStatic: false, nodeTransforms: [ ssrTransformIf, ssrTransformFor,