Symlinks expand paths of node_modules

Open
#64 13 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript, webpack
Domain
devtools

Research direction

Start by reproducing the bundle analyzer output with node_modules packages symlinked through lerna, @microsoft/rush, or npm link. Trace where symlinked module paths are expanded and review the existing discussion about filters or aliases. Done means the treemap no longer shows the extraneous resolved path while preserving useful module locations.

Written by the indexing model from the issue text.

Description

Status: Upstream action required type: Feature
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?

Dominant language
JavaScript
Stars
12.7k
Forks
521
Avg merge
2d 9h
Merged PRs (30d)
7

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from webpack/webpack-bundle-analyzer

All issues in webpack/webpack-bundle-analyzer

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.