I use this plugin with webpack 5. It causes the wrong module resolving.
I have an example repo to reproduce it:
When I enable this plugin in webpack.config.js, check webpack verbose logs, search package.json, you will see package.json in node_modules will be resolved to the package.json in my repo.
When I disable this plugin, the module is resolved correctly.
The repo: https://github.com/chaoyangnz/webpack-5-wrong-module-resolve
I use this plugin with webpack 5. It causes the wrong module resolving.
I have an example repo to reproduce it:
When I enable this plugin in webpack.config.js, check webpack verbose logs, search
package.json, you will seepackage.jsonin node_modules will be resolved to thepackage.jsonin my repo.When I disable this plugin, the module is resolved correctly.
The repo: https://github.com/chaoyangnz/webpack-5-wrong-module-resolve