webpack / webpack/webpack-bundle-analyzer

Incorrect total size in search result

Open
#251 14 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Issue description

When I search for some modules total size isn't correct. It looks like total size is folder size + size of each file in folder

Technical info
  • Webpack Bundle Analyzer version: 3.0.3
  • Webpack version: 4.19.1
  • Node.js version: 11.9.0
  • npm/yarn version: 1.13.0
  • OS: macOS Mojave
Debug info

How do you use this module? As CLI utility or as plugin?
plugin

If plugin, what options were provided? (e.g. new BundleAnalyzerPlugin({ analyzerMode: 'disabled', generateStatsFile: true }))
{ openAnalyzer: false }

screen shot 2019-02-14 at 13 04 00

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

Start by reproducing the incorrect total size in the plugin with the reported Webpack Bundle Analyzer 3.0.3 and Webpack 4.19.1 setup, using the provided screenshot as a reference. Trace how search results calculate folder and file sizes, and consider the issue done when a folder's size is not added twice to its total.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.