Skip to content

Commit 0a06058

Browse files
committed
fix: issuePackagesMap contains none duplicated deps
1 parent 3f22b70 commit 0a06058

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,8 @@ export default createUnplugin<Options | undefined>((options) => {
217217
if (throwErrorWhenDuplicated) {
218218
const issuePackagesMap = new Map<string, string[]>();
219219
for (const [packageName, versionsMap] of packageToVersionsMap.entries()) {
220+
if (versionsMap.size < 2) continue;
221+
220222
for (const version of versionsMap.keys()) {
221223
const pass =
222224
packageName in whiteList && whiteList[packageName].includes(version);

0 commit comments

Comments
 (0)