Skip to content

Commit 349c381

Browse files
authored
fix(sdk): use variable instead of constant (#2613)
1 parent 8671892 commit 349c381

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/three-adults-join.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@module-federation/sdk': patch
3+
---
4+
5+
fix(sdk): use variable instead of constant

packages/sdk/src/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ const parseEntry = (
2828
// Check if the string starts with a type
2929
if (strSplit.length >= 2) {
3030
let [name, ...versionOrEntryArr] = strSplit;
31-
if (str.startsWith(SEPARATOR)) {
31+
if (str.startsWith(separator)) {
3232
versionOrEntryArr = [devVersionOrUrl || strSplit.slice(-1)[0]];
33-
name = strSplit.slice(0, -1).join(SEPARATOR);
33+
name = strSplit.slice(0, -1).join(separator);
3434
}
3535

3636
let versionOrEntry = devVersionOrUrl || versionOrEntryArr.join(separator);

0 commit comments

Comments
 (0)