!860 Swtich js-engine of previewer to quickJS

Merge pull request !860 from Pan Zhenyu/OpenHarmony-3.2-Beta2
This commit is contained in:
openharmony_ci
2022-07-23 07:20:20 +00:00
committed by Gitee
2 changed files with 6 additions and 4 deletions
+3 -3
View File
@@ -484,9 +484,9 @@ function createEntryNode(node: ts.SourceFile, context: ts.TransformationContext)
return node;
}
} else {
const statementsArray: ts.Statement =
createPreviewComponentFunction(componentCollection.entryComponent, context);
return context.factory.updateSourceFile(node, [...node.statements, statementsArray]);
const entryNode: ts.ExpressionStatement =
createEntryFunction(componentCollection.entryComponent, context);
return context.factory.updateSourceFile(node, [...node.statements, entryNode]);
}
}
+3 -1
View File
@@ -347,7 +347,9 @@ module.exports = (env, argv) => {
} else {
projectConfig.isPreview = true;
projectConfig.checkEntry = env.checkEntry;
setGenAbcPlugin(env, config);
if (env.compilerType && env.compilerType === 'ark') {
setGenAbcPlugin(env, config);
}
let port;
process.argv.forEach((val, index) => {
if(val.startsWith('port=')){