Chunk contents are lost with some values of `output.libraryTarget`
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 55/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- javascript, webpack
- Domain
- data-visualization, tooling
Research direction
Start with the linked webpack-bundle-analyzer reproduction and compare reports for the listed output.libraryTarget values, especially global, window, this, commonjs, commonjs2, and assign versus the working targets. Trace how chunk contents are collected and displayed, then verify that the affected targets show chunk contents in the report without regressing the working cases.
Written by the indexing model from the issue text.
Description
Issue description
When using global, window, this, commonjs, commonjs2, or assign as output.libraryTarget, chunk contents are not displayed in report. var, umd, 'amd', 'amd-require', 'system', and 'jsonp' work OK.
Technical info
System:
OS: macOS 10.15.6
CPU: (16) x64 Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
Memory: 1.35 GB / 32.00 GB
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 12.18.2 - ~/n/bin/node
Yarn: 1.22.4 - /usr/local/bin/yarn
npm: 6.14.5 - ~/n/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
npmPackages:
webpack: ^4.43.0 => 4.43.0
webpack-bundle-analyzer: ^3.8.0 => 3.8.0
webpack-cli: ^3.3.12 => 3.3.12
Reproduction
https://github.com/Hypnosphi/webpack-bundle-analyzer-repro
Expected

Actual

- Dominant language
- JavaScript
- Stars
- 12.7k
- Forks
- 521
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 7
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from webpack/webpack-bundle-analyzer
-
parseBundle finds no modules in webpack 5 ESM output (`output.module`), so parsed and gzip sizes are missingPossibly taken @goranai claimed this 8 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 38/100
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
webpack/webpack-bundle-analyzer#737 · 5 comments ·
-
[bug] `TypeError: Cannot read properties of undefined (reading 'filter')` when passing stats objectOpenstatus: Needs triage
Difficulty 3/5 1-2 days Newbie friendliness 35/100
webpack/webpack-bundle-analyzer#669 · 6 comments · 3 reactions ·
-
[Nice to Have] plugin should use webpack InfrastructureLogger and output report to compiler.outputFileSystemMay be free again A pull request for this issue was closed without being merged. Open
Difficulty 4/5 3-5 days Newbie friendliness 35/100
webpack/webpack-bundle-analyzer#476 · 1 comment ·
-
Errors when using with the webpack dev server 4Possibly taken @Br1an67 claimed this 267 days ago. Openflag: Community help wanted type: Bug
Difficulty 4/5 3-5 days Newbie friendliness 35/100
webpack/webpack-bundle-analyzer#471 · 18 comments · 3 reactions ·
All issues in webpack/webpack-bundle-analyzer
Similar issues
-
Mend: dependency security vulnerability
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
ManageIQ/manageiq-ui-service#2259 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
electerious/Ackee#411 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
babalae/bettergi-scripts-list#3905 · 1 comment ·
Maintainers usually reply within 1 day
-
[Bug] "Configure Colota" opens Colota with "Invalid configuration: No configuration data in URL"Open
Difficulty 1/5 1-3 hours Newbie friendliness 87/100
dedicatedcode/reitti#1445 ·
Maintainers usually reply within 1 day