webpack-contrib / webpack-bundle-analyzer

Webpack plugin and CLI utility that represents bundle content as convenient interactive zoomable treemap
MIT License
12.58k stars 488 forks source link

Webpack 5 with DLLPlugin does create empty analysis (contents of chunks are not visible) #399

Open ceisele-r opened 3 years ago

ceisele-r commented 3 years ago

Issue description

When using webpack 5 with a vendor webpack config that uses DLLPlugin, the webpack report created for this bundle does not display any contents within the chunks.

The following example uses the same code & webpack config, the only difference is the webpack version.

Webpack 4 (v4.44.2) Output: image Webpack 5 (v5.9.0) Output: image

Technical info

Sample repository to reproduce this error can be found here (it's basically a copy of webpacks own dll example with installed webpack-bundle-analyzer):

  1. npm i in both webpack4, webpack5 directories
  2. npx webpack in both dll directories
  3. Analyzer output will be in dist (versions are also checked in)

Debug info

See above.

jakedowns commented 3 years ago

+1 same here https://cdn-std.droplr.net/files/acc_77710/6oQGgP

valscion commented 3 years ago

Please add a :+1: to the issue instead of adding a +1 as own comment, unless you have more to add.