mirror of
https://github.com/openharmony/developtools_ace-ets2bundle.git
synced 2026-07-21 03:55:23 -04:00
!860 Swtich js-engine of previewer to quickJS
Merge pull request !860 from Pan Zhenyu/OpenHarmony-3.2-Beta2
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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=')){
|
||||
|
||||
Reference in New Issue
Block a user