fix(compiler-ssr): keep the order of imports expression for the fallback branch of SSR (#3448)

fix #3447
This commit is contained in:
HcySunYang
2021-03-25 23:10:25 +08:00
committed by GitHub
parent 776951315d
commit 49f4072c83
2 changed files with 17 additions and 0 deletions

View File

@@ -293,6 +293,7 @@ function subTransform(
// inherit parent scope analysis state
childContext.scopes = { ...parentContext.scopes }
childContext.identifiers = { ...parentContext.identifiers }
childContext.imports = parentContext.imports
// traverse
traverseNode(childRoot, childContext)
// merge helpers/components/directives into parent context