web-infra-dev / rsdoctor

A one-stop build analyzer for Rspack and Webpack.
https://rsdoctor.dev/
MIT License
355 stars 20 forks source link

[Feature]: Analysis of tree shaking #299

Closed easy1090 closed 2 weeks ago

easy1090 commented 3 months ago

What problem does this feature solve?

Provide the analysis ability of tree-shaking:

  1. The exported variables of the module file.
  2. The unused exported variables and the used exported variables.
  3. The link of the used exported variables.
  4. Side effect analysis. img_v3_02a3_018b4a34-5310-476f-8e31-34f37d5c565g

What does the proposed API look like?

features: { treeShaking: true }