Skip to content

Commit 6a5a8dc

Browse files
chore: changeset
1 parent b0fa725 commit 6a5a8dc

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.changeset/ai-eager-mouse.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
---
12
"@module-federation/sdk": patch
23
---
34

45
Fixes an issue where duplicate links were created when existing links had no rel attribute.
56

67
- Added a test in `dom.spec.ts` to ensure links without `rel` attribute aren't duplicated.
78
- Modified the `createLink` function in `dom.ts` to treat `null` and `undefined` `rel` attributes as equivalent when checking for existing links.
8-
```
9+
```

.changeset/ai-happy-lion.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
"@module-federation/sdk": patch
3+
---
4+
5+
Fix issue where `createLink` incorrectly created duplicate links when existing links lacked a `rel` attribute.
6+
7+
- Added a test case to verify `createLink` does not duplicate links when existing ones have no `rel`.
8+
- Modified `createLink` logic to treat `null` and `undefined` as equivalent for `rel` attribute.
9+
- Ensures consistent behavior even when `rel` attribute is missing.
10+
```

0 commit comments

Comments
 (0)