web-infra-dev / rspack

The fast Rust-based web bundler with webpack-compatible API 🦀️
https://rspack.dev
MIT License
10.22k stars 579 forks source link

[Feature]: Optimizing the problem of overly long identifiers of the container entry module of the issuerPath in the stats.json file #6776

Open easy1090 opened 5 months ago

easy1090 commented 5 months ago

What problem does this feature solve?

When rsdoctor analyzed a certain business MF project, the build analysis was very slow. It was found that the stats.json containing chunks and modules was nearly 4G, and that each module's issuer path contained the container entry module, and the identifier of the container entry module was 22KB, that string contains 100+ arrays and there were a total of 13,000 modules, resulting in a very large stats.json, which caused rsdoctor to analyze very slowly using stats.json.

rspack mf logic on generating the identifier of the container entry module..

We are looking forward to optimizing the issue of overly long identifiers of the container entry module of the issuerPath in the stats.json file.

MF core same issue: https://github.com/module-federation/core/issues/2598

What does the proposed API of configuration look like?

It is hoped that the identifier of the container module in the issuerpath can be optimized by hash or other volume reduction.

stale[bot] commented 3 months ago

This issue has been automatically marked as stale because it has not had recent activity. If this issue is still affecting you, please leave any comment (for example, "bump"). We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!