fix(compiler-ssr): disable hoisting in compiler-ssr

fix #3536
This commit is contained in:
Evan You 2021-05-24 16:48:24 -04:00
parent 90aa835812
commit 3ef1fcc859

View File

@ -51,6 +51,7 @@ export function compile(
transform(ast, {
...options,
hoistStatic: false,
nodeTransforms: [
ssrTransformIf,
ssrTransformFor,