diff --git a/compiler/src/gen_abc_plugin.ts b/compiler/src/gen_abc_plugin.ts index 758ab7d96ebea5b342c89f38565b76ba7f7eb35d..2c82d44409635bfe0e1b19b1d4aeb9d652be1e28 100644 --- a/compiler/src/gen_abc_plugin.ts +++ b/compiler/src/gen_abc_plugin.ts @@ -1142,6 +1142,9 @@ function copyModuleFileCachePathToBuildPath(): void { mkdirsSync(path.dirname(protoFilePath)); let entriesInfo: string = ''; moduleInfos = removeDuplicateInfo(moduleInfos); + moduleInfos.sort((m1: ModuleInfo, m2: ModuleInfo) => { + return m1.tempFilePath < m2.tempFilePath ? 1 : -1; + }); for (let i = 0; i < moduleInfos.length; ++i) { let protoTempPath: string = genProtoFileName(moduleInfos[i].tempFilePath); entriesInfo += `${toUnixPath(protoTempPath)}\n`;