darrenscerri/duplicate-package-checker-webpack-plugin

Allow multiple warnings for each package

Opened this issue · 0 comments

The problem that I am facing using this plugin is, it does not inform me what all dependencies needs to be bumbed on a module. It just bails out on the first duplicate package it finds. Maybe this was done for performance, but it would be really helpful if there were an option to override this behavior.

E.g. Let's say I have the following packages

packageA: uses moduleA.01
packageB: uses moduleA.02
packageC: uses moduleA.03 
packageD: uses moduleA.04

Currently, it will warn

WARNING in moduleA
  Multiple versions of moduleA found:
 01 packageA
 02 packageB

Then I go and update the packageA~moduleA to version 02. Now when I run the command again, it displays the following warning

WARNING in moduleA
  Multiple versions of moduleA found:
 02 packageB
 02 packageC

And so on...

I need an option that will output all the packages where it's conflicting in a single command, something like this

WARNING in moduleA
  Multiple versions of moduleA found:
 01 packageA
 02 packageB
 03 packageC
 04 packageD