Skip to content

Commit ecb0d05

Browse files
committed
fix: 排序 platforms 确保生成 pages.json 的一致性
1 parent 8e3c2fa commit ecb0d05

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/core/src/context.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,7 @@ function mergePlatformItems<T = any>(source: any[] | undefined, currentPlatform:
595595
const equalObj = existing.find(val => val.itemStr === newItemStr)
596596
if (equalObj) {
597597
equalObj.platforms.push(currentPlatform)
598+
equalObj.platforms.sort()
598599
equalObj.platformStr = equalObj.platforms.join(' || ')
599600
}
600601
else {

0 commit comments

Comments
 (0)