Skip to content

[Feature]: have a list of files processed by rspackΒ #1131

@n0th1ng-else

Description

@n0th1ng-else

What problem does this feature solve?

It would be very nice to have the list of processed files somewhere in the UI. RIght now we have the number of generated files (in our case it is sor tof 6k+)

Image

I wish there was a number of processed files (let's say 41233) and a way to list them. So we can take this data and delete the unused modules/find out why they are not used in the codebase.

This can trigger further research on

  • why we have unused files, except the tests/stories/markdown files...
  • why do we actually process some of the files when we should not

What does the proposed API look like?

  • To have a setting for the features parameter new RsdoctorRspackPlugin({ features: ['source'] })
  • Show the number of processed files in the project overview, along with the Total files
  • Show 4th tab after the Bundle size with the name processed files, with a similar UI as Bundle stats
  • Have the ability to export the list of processed files (any format, just a text file with file paths)
  • Deal with node_modules? Have a filter or something like that

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions