[Nice to Have] plugin should use webpack InfrastructureLogger and output report to compiler.outputFileSystem
Nobody has claimed this yet.
- #477 by @wood1986 — closed without merging
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript, webpack
- Domain
- build-system
Research direction
Start in BundleAnalyzerPlugin.js by tracing how plugin messages are emitted and how report.html is written during webpack-dev-server runs. Review the existing Jest test and webpack compiler APIs, then verify that logging uses InfrastructureLogger and that the report is written through compiler.outputFileSystem without appearing in dist.
Written by the indexing model from the issue text.
Description
Issue description
There are 2 issues for the plugin code(not bin/analyzer). Currently, it is not a bug but nice to have
BundleAnalyzerPlugin.jsshould use InfrastructureLogger from webpack compiler. When I run my jest test, there are some noise message from the plugin. See the following screenshot.

I can silent theconsole.logfor my jest test. But I have to write some to find the plugin in my sharedwebpack.config.jsand then replace the existing plugin with another one to silent log messages.- When I launch the webpack-dev-server, I expect my
distshould be empty. Currently it always has report.html. Other assets are in memfs. I have a jest test to check the folder is empty. Now I have to write more code to handle it differently

- 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 ·
-
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 ·
-
status: Needs triage
Difficulty 3/5 1-2 days Newbie friendliness 42/100
webpack/webpack-bundle-analyzer#399 · 4 comments · 17 reactions ·
All issues in webpack/webpack-bundle-analyzer
Similar issues
-
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
-
New tool: Uncle DeskPossibly taken @github-actions claimed this today. Opensubmission triage
Difficulty 1/5 Under an hour Newbie friendliness 85/100
kausalflow/tools#384 · 1 comment ·
Maintainers usually reply within 1 day
-
good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
-
area: css
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day