Skip to content

Commit 1227fd6

Browse files
authored
fix(dts-plugin): avoid the generation type order being affected by the loading timing so that every type occurs (#2506)
1 parent 819a481 commit 1227fd6

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@module-federation/dts-plugin': patch
3+
---
4+
5+
fix: Avoid the generation type order being affected by the loading timing so that every type occurs

packages/dts-plugin/src/core/lib/DTSManager.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ class DTSManager {
267267
const remoteKeys: string[] = [];
268268

269269
const importTypeStr = this.loadedRemoteAPIAlias
270+
.sort()
270271
.map((alias, index) => {
271272
const remoteKey = `RemoteKeys_${index}`;
272273
const packageType = `PackageType_${index}`;

0 commit comments

Comments
 (0)