Skip to content

chore: Correct stats generation in webpack 5#452

Open
sergiocarracedo wants to merge 1 commit into
webpack:masterfrom
sergiocarracedo:chore/correct-stats-generation-webpack-5
Open

chore: Correct stats generation in webpack 5#452
sergiocarracedo wants to merge 1 commit into
webpack:masterfrom
sergiocarracedo:chore/correct-stats-generation-webpack-5

Conversation

@sergiocarracedo

Copy link
Copy Markdown

This PR contains a:

  • bugfix
  • new feature
  • code refactor
  • test update
  • typo fix
  • metadata update

Motivation / Use-Case

The stats generation via buildModuleMap uses module.id which doesn't exist in webpack 5 returning just the last module (as the key of the map is always undefined)

Breaking Changes

NONE: Still prioritizing module.id, if it is not defined fallback the value to index or identifier

Additional Info

@linux-foundation-easycla

linux-foundation-easycla Bot commented Aug 8, 2024

Copy link
Copy Markdown

CLA Signed

  • ✅login: sergiocarracedo / (8934430)

The committers listed above are authorized under a signed CLA.

@alexander-akait

Copy link
Copy Markdown
Member

Can you accept CLA?

@sergiocarracedo
sergiocarracedo force-pushed the chore/correct-stats-generation-webpack-5 branch from 2eb9ed5 to 8934430 Compare August 8, 2024 20:30
bjohansebas added a commit to webpack/webpack-dev-middleware that referenced this pull request Jul 20, 2026
webpack-dev-server does not send module names over the wire: the HMR
runtime logs module ids on apply. Align the SSE payload with that
(name, action, time, hash, errors, warnings) instead of serializing a
module id → name map that was only used for log cosmetics and was
empty with the default stats options anyway.

Ref webpack/webpack-hot-middleware#452
Ref webpack/webpack-hot-middleware#306
@bjohansebas

Copy link
Copy Markdown
Member

webpack-hot-middleware is being migrated into webpack-dev-middleware — see webpack/webpack-dev-middleware#2322.

This is handled there by webpack/webpack-dev-middleware#2349.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants