mirror of
https://github.com/openharmony/developtools_ace-ets2bundle.git
synced 2026-07-19 16:43:34 -04:00
!807 remove loaddocument in jsbundle without @Entry
Merge pull request !807 from houhaoyu/master4
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user