darrenscerri / duplicate-package-checker-webpack-plugin

🕵️ Webpack plugin that warns you when a build contains multiple versions of the same package
MIT License
709 stars 29 forks source link

also check for loader versions #26

Open mixtur opened 5 years ago

mixtur commented 5 years ago

We have a package that contains loader and runtime. Therefore we can run into following confusing error which I hope you could check for.

We have something like this in webpack config in our host application.

  modules: {rules: [
    {test: /some-regex/,
     use: 'our-package/loader'} // version A
    ...otherRules
  ]}

And in some library

import 'our-package/runtime'; // version B

And if runtime B is not compatible with loader A we are in trouble.

Could you please check for such situations?