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

Author: ceisele-rCreated Nov 30, 2020Updated Jan 29, 2021
Labelsstatus: Needs triage

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.

Source: webpack/webpack-bundle-analyzer