Closed gobi-G closed 4 days ago
You can find the documentation in the README.md
: https://github.com/microsoft/rnx-kit/tree/main/packages/metro-plugin-duplicates-checker#options
It states that ignoredModules
is a "list of modules that can be ignored", meaning you should use package names here. It does not say that it's a list of paths or glob patterns.
Unless package names don't work, the option works as expected. I'm closing this issue. Feel free to open a new issue if you hit others issues.
What happened?
Description The
ignoredModules
option inmetro-plugin-duplicates-checker
does not seem to work as intended. Regardless of whether I provide the full path to specific modules or use a pattern, the plugin still checks subpackages.Context I am working on a monorepo where I need the plugin to ignore all subpackages and only check the root-level packages for duplicates. Here is the relevant part of my metro.config.js:
Expected Behavior I expect the ignoredModules option to prevent the plugin from checking subpackages, such as:
/Users/username/Documents/my-project/node_modules/subpackage/node_modules/@module
Only the root-level packages should be checked, like:
/Users/username/Documents/my-project/node_modules/@module
Actual Behavior Despite the configuration, the plugin continues to check subpackages and reports duplicates that are nested within other node_modules directories.
Request Please provide guidance on how to properly configure ignoredModules to effectively ignore subpackages in a monorepo environment, or address the issue if it is a bug.
Affected Package
@rnx-kit/metro-plugin-duplicates-checker
Version
2.1.3
Which platforms are you seeing this issue on?
System Information
Steps to Reproduce
Code of Conduct