webpack / webpack/webpack-bundle-analyzer

parsed sizes not working for utf8 with bom files

Open
#282 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Issue description

Parsed sizes not working for utf8 with bom files

Technical info
  • Webpack Bundle Analyzer version: 3.0.3
  • Webpack version: 4.25.1
  • Node.js version: 10.15.3
  • npm version: 6.9.0
  • OS: win10
Debug info
const BomPlugin = require("webpack-utf8-bom");
const BundleAnalyzerPlugin = require("webpack-bundle-analyzer").BundleAnalyzerPlugin;

plugins: [
		new BomPlugin(true),
		new BundleAnalyzerPlugin({
			analyzerMode: "static",
			openAnalyzer: false,
		}),
		...
	],

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

Reproduce the report with webpack-utf8-bom and the BundleAnalyzerPlugin configuration shown in the issue, using a UTF-8 BOM file. Trace how parsed sizes are obtained and verify that bundle sizes are reported correctly for BOM-containing files; the issue does not name a source file or test to run.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.