web-infra-dev / rsdoctor

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

[Bug]: Optimize the situation where the cjs package contains an esm loader #394

Open easy1090 opened 1 week ago

easy1090 commented 1 week ago

Version

rsdoctor 0.3.x

Details

Optimize the situation where the cjs package contains an esm loader, some times the cjs package can has a dir has a independent package.json also has type: module attribute in package.json.

In this case, when the package json name and version do not exist, it can also be regarded as a valid package.json.