FormidableLabs / inspectpack

An inspection tool for Webpack frontend JavaScript bundles.
MIT License
591 stars 20 forks source link

What is the difference between 「duplicate-package-checker-webpack-plugin」 #164

Closed Sylvenas closed 3 years ago

Sylvenas commented 3 years ago

Great project !

When looking for webpack packaging duplicates, I was previously using duplicate-package-checker-webpack-plugin, I wanted to know the key point of difference between the two.

Thanks

ryan-roemer commented 3 years ago

Hi @Sylvenas -- the two are pretty similar for just the webpack plugin parts. The main difference is whereas duplicate-package-checker-webpack-plugin gives you the on-disk information of locations of duplicates, inspectpack's plugin focuses on the logical dependency view irrespective of node_modules flattening so you can more easily track down why the duplicates happened in the first place. Here you can see an example of how this plugin provides both on-disk and logical dependencies information.

Outside of the functional differences in the plugin, the other thing this project has:

Hope that helps your evaluation!

ryan-roemer commented 3 years ago

Hopefully the comment above helps. Closing this issue to focus on others!

Sylvenas commented 3 years ago

thanks.