Skip to content

Commit

Permalink
fix(compiler-ssr): disable hoisting in compiler-ssr
Browse files Browse the repository at this point in the history
fix #3536
  • Loading branch information
yyx990803 committed May 24, 2021
1 parent 90aa835 commit 3ef1fcc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/compiler-ssr/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export function compile(

transform(ast, {
...options,
hoistStatic: false,
nodeTransforms: [
ssrTransformIf,
ssrTransformFor,
Expand Down

0 comments on commit 3ef1fcc

Please sign in to comment.