Symlinks expand paths of node_modules

Author: dzearingCreated Apr 21, 2017Updated Mar 2, 2021
Labelstype: FeatureStatus: Upstream action required

Issue description

When this is used in an environment where node_modules packages are symlinked (via lerna, @microsoft/rush, npm link) the locations to npm modules are expanded such that it makes things hard to parse. Basically half of the tree map is dedicated to resolving the node_modules folder:

image

Would there be any way to fix this such that I can provide "filters" that would alias a folder to say blank string, to remove the extraneous path? Any suggestions, other than to avoid symlinking?

Source: webpack/webpack-bundle-analyzer