webpack / webpack/webpack-bundle-analyzer

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

Open
#399 2 comments 17 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: Needs triage
Dominant language
JavaScript
Stars
12.7k
Forks
514
Avg merge
6d 2h
Merged PRs (30d)
4

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Use the linked webpack5-analyzer-dll-demo reproduction, install dependencies in both webpack4 and webpack5 directories, and run npx webpack in each dll directory. Compare the analyzer output in dist, focusing on why the webpack 5 report shows empty chunks while webpack 4 displays their contents; done means webpack 5 chunk contents are visible.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
build-system, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.