feat: hidden modules - #103
Merged
Merged
Conversation
The modules page gains a filter: a name substring or a /regexp/, and a switch for hiding node_modules. The state is shared with the module graph, so the table and the graph show the same thing and the filter survives a walk through single modules and chunks, where the legend says how much is being held back. Whether a module is third-party is decided by its file rather than its whole name, or a source file built by a loader from node_modules would be hidden along with the loader. The filter bar sits above a table that used to start at the window edge, which put the gutter question on the table: .page carries it now, so the pages that bring a container-fluid and the pages that are a bare table line up on the same left edge. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The modules page gains a filter: a name substring or a /regexp/, and a switch for hiding node_modules. The state is shared with the module graph, so the table and the graph show the same thing and the filter survives a walk through single modules and chunks, where the legend says how much is being held back.
Whether a module is third-party is decided by its file rather than its whole name, or a source file built by a loader from node_modules would be hidden along with the loader.
The filter bar sits above a table that used to start at the window edge, which put the gutter question on the table: .page carries it now, so the pages that bring a container-fluid and the pages that are a bare table line up on the same left edge.
What kind of change does this PR introduce?
feature
Did you add tests for your changes?
N/A
Does this PR introduce a breaking change?
No
If relevant, what needs to be documented once your changes are merged or what have you already documented?
Yes all good.
Use of AI
Claude sketched out implementation, manually verified each step.