We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f22b70 commit 0a06058Copy full SHA for 0a06058
src/index.ts
@@ -217,6 +217,8 @@ export default createUnplugin<Options | undefined>((options) => {
217
if (throwErrorWhenDuplicated) {
218
const issuePackagesMap = new Map<string, string[]>();
219
for (const [packageName, versionsMap] of packageToVersionsMap.entries()) {
220
+ if (versionsMap.size < 2) continue;
221
+
222
for (const version of versionsMap.keys()) {
223
const pass =
224
packageName in whiteList && whiteList[packageName].includes(version);
0 commit comments