GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — docs(output): say where an ESM build names its chunks by alexander-akait · Pull Request #8387 · webpack/webpack.js.org

Conversation

@alexander-akait

@alexander-akait alexander-akait commented Sep 12, 2026

Copy link
Copy Markdown
Member

Summary

output.chunkFilename still describes the chunk id to filename map as the only way a chunk is named. Since 5.111.0 an output.module build that loads chunks through a native import() holds a literal specifier per chunk in the chunk loader, so the name lives in the chunk carrying the runtime rather than in every module importing it — which is what makes optimization.runtimeChunk keep its long-term caching. Adds a note saying so, and points out that 5.110 wrote the specifier at each import site instead.

Also drops the performance.analyzableBailouts row for "the compilation emits no JavaScript for a chunk": webpack no longer reports that reason — such a chunk is simply left out of the loader's map.

Documents webpack/webpack#22076, which fixes webpack/webpack#22056.

Use of AI

Claude Code drafted these edits under my direction and review, from the behaviour of the linked webpack PR.


Generated by Claude Code

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@alexander-akait
docs(output): say where an ESM build names its chunks
ede6a4f
`output.chunkFilename` still described the chunk id to filename map as the only
way a chunk is named. Since 5.111.0 an `output.module` build loading through a
native `import()` holds a literal specifier per chunk in the chunk loader, so the
name is in the runtime chunk rather than in every module importing it.

Drops the analyzable-bailout row for a chunk the compilation emits no javascript
for, which is no longer reported: such a chunk is simply left out of that map.
@vercel

vercel Bot commented Sep 12, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
webpack-js-org Ready Ready Preview Sep 12, 2026 5:47pm UTC

Request Review

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@alexander-akait alexander-akait mentioned this pull request Sep 12, 2026
fix: name chunk imports in the chunk loader webpack/webpack#22076
Merged
@vercel
vercel Bot deployed to Preview September 12, 2026 17:33
View deployment
@alexander-akait
docs(output): keep the chunk naming note under the line limit
602ad4d
markdownlint caps a line at 600 characters and the note ran to 715.
@vercel
vercel Bot deployed to Preview September 12, 2026 17:47
View deployment
@alexander-akait
alexander-akait merged commit 305e4e3 into main Sep 13, 2026
11 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@alexander-akait
alexander-akait deleted the docs/analyzable-chunk-import-in-loader branch September 13, 2026 10:13

This branch was successfully deployed

1 active deployment
Preview — 602ad4dd Deployed Sep 12, 2026 by vercel[bot]
View deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

ESM output bakes hashed chunk filenames into importing modules, defeating long-term caching (no opt-out)

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@alexander-akait
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.