!807 remove loaddocument in jsbundle without @Entry

Merge pull request !807 from houhaoyu/master4
This commit is contained in:
openharmony_ci
2022-07-07 11:32:29 +00:00
committed by Gitee
+2 -2
View File
@@ -599,7 +599,7 @@ function createPreviewComponentFunction(name: string, context: ts.Transformation
...argsArr
]
)),
context.factory.createExpressionStatement(context.factory.createCallExpression(
name ? context.factory.createExpressionStatement(context.factory.createCallExpression(
context.factory.createIdentifier(PAGE_ENTRY_FUNCTION_NAME),
undefined,
[context.factory.createNewExpression(
@@ -607,7 +607,7 @@ function createPreviewComponentFunction(name: string, context: ts.Transformation
undefined,
newArray
)]
))
)) : undefined
],
true
)