Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node modules shown only for stats view. #171

Closed
Arturszott opened this issue May 8, 2018 · 9 comments
Closed

Node modules shown only for stats view. #171

Arturszott opened this issue May 8, 2018 · 9 comments

Comments

@Arturszott
Copy link

Arturszott commented May 8, 2018

Issue description

Node_modules are shown only for stats view, but not in parsed and gzip

Stats:
screen shot 2018-05-08 at 15 52 39

Parsed:
screen shot 2018-05-08 at 15 52 32

Technical info

  • Webpack Bundle Analyzer version: 2.11.1
  • Webpack version: 4.5.0
  • Node.js version: 8.9.4
  • npm/yarn version: 5.6.0
  • OS: osx

Debug info

Using as CLI

NODE_ENV=production webpack --bail --profile --json > ./build/stats.json

What other Webpack plugins were used?

MiniCssExtractPlugin, SaveAssetsJson, CopyAssets, ManifestPlugin, StatsPlugin

With webpack 3.X everything was fine.

stats.json.zip

@th0r
Copy link
Collaborator

th0r commented May 8, 2018

Could you provide stats.json and resulting bundles?

@Arturszott
Copy link
Author

@th0r done

@th0r
Copy link
Collaborator

th0r commented May 9, 2018

and resulting bundles

I didn't find resulting bundles in the archive. Unfortunately stats file alone won't help here because your stats sizes are valid - the issue is with parsed sizes.
If you don't want to publish your bundles here you can send them to me via email.

@iwaszko
Copy link

iwaszko commented May 12, 2018

The same happens for me. Please find a sample project, stats.json and bundles in the .zip attached: demo.zip.

The issue seems to be caused by the first import in index.scss file. Commenting it out restores the correct behaviour.

Also, switching to 'Stat' and then 'Parsed' shows node_modules for me, although I believe sizes of packages on the graph are not correct then.

@th0r
Copy link
Collaborator

th0r commented May 13, 2018

@iwaszko should be fixed in v2.11.3
@Arturszott could't you try v2.11.3 and see if the problem has disappeared?

@iwaszko
Copy link

iwaszko commented May 13, 2018

2.11.3 works great for me. Thanks!

@Arturszott
Copy link
Author

@th0r Like a charm! Thanks! I love this tool!

@cdauth
Copy link

cdauth commented Feb 27, 2021

It looks like I'm seeing this exact behaviour with webpack-bundle-analyzer 4.3.0 and webpack 5.24.2.

@valscion
Copy link
Member

valscion commented Mar 1, 2021

Please open a new issue and fill in all the required information in the issue description. Commenting on issues that have been closed for years will not help

@webpack-contrib webpack-contrib locked as resolved and limited conversation to collaborators Mar 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants