mirror of
https://gitee.com/openharmony/developtools_ace_ets2bundle
synced 2025-03-07 01:50:34 +00:00
!3358 Reset global variables related to coldreload during task switching
Merge pull request !3358 from OneYuan/coldreload
This commit is contained in:
commit
8f5e265489
@ -607,6 +607,8 @@ function readPatchConfig() {
|
||||
if (aceBuildJson.patchConfig) {
|
||||
projectConfig.hotReload = process.env.watchMode === 'true' && !projectConfig.isPreview;
|
||||
projectConfig.coldReload = aceBuildJson.patchConfig.mode === COLD_RELOAD_MODE ? true : false;
|
||||
// The "isFirstBuild" field indicates whether it is the first compilation of cold reload mode
|
||||
// It is determined by hvigor and passed via env
|
||||
projectConfig.isFirstBuild = process.env.isFirstBuild === 'false' ? false : true;
|
||||
projectConfig.patchAbcPath = aceBuildJson.patchConfig.patchAbcPath;
|
||||
projectConfig.changedFileList = aceBuildJson.patchConfig.changedFileList ?
|
||||
@ -1023,6 +1025,10 @@ function resetProjectConfig() {
|
||||
projectConfig.cardEntryObj = {};
|
||||
projectConfig.compilerTypes = [];
|
||||
projectConfig.optLazyForEach = false;
|
||||
projectConfig.coldReload = undefined;
|
||||
projectConfig.isFirstBuild = undefined;
|
||||
projectConfig.changedFileList = undefined;
|
||||
projectConfig.patchAbcPath = undefined;
|
||||
const props = ['projectPath', 'buildPath', 'aceModuleBuild', 'manifestFilePath', 'aceProfilePath',
|
||||
'aceModuleJsonPath', 'aceSuperVisualPath', 'hashProjectPath', 'aceBuildJson', 'cachePath',
|
||||
'aceSoPath', 'localPropertiesPath', 'projectProfilePath', 'isPreview', 'compileMode', 'runtimeOS',
|
||||
|
Loading…
x
Reference in New Issue
Block a user