docs: document the webpack 5.110.0 configuration and API surface - #8337
Merged
Conversation
Adds performance.all, hints: "stats" and the opt-in checks introduced in webpack 5.110.0, plus an overview table grouping them by what they inspect and a note on which ones are not gated on hints. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Both conditions land in webpack 5.110.0: glob matches the resource OS-independently and is also accepted inside a Condition object, and descriptionRelativePath matches a module by its path inside its own package. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Covers externalsPresets.nodeModules and its allowlist, which replace the
webpack-node-externals plugin, plus the { external, sideEffects } value
form, both added in webpack 5.110.0. Also fills in the bun and deno
preset rows, which the table was missing.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…resourceHints.dedupe and per-entry html Adds the [containedfile]/[containedpath] template placeholders, output.library.umdAmdContainer and output.resourceHints.dedupe from webpack 5.110.0, plus the entry descriptor's html option, which now accepts an object overriding output.html per entry. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
webpack 5.110.0 makes optimization.minimize accept an object that configures the built-in minimizer per asset type, and the default minimizer now handles CSS and HTML too. Documents the javascript, css and html option sets and when each minifier runs. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Also adds the deferImport and sourceImport environment flags to the output.environment listing, both added in webpack 5.110.0. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…ooks The module variable reads back the CSS collected while rendering without a DOM, and MultiCompiler gained an aggregated shutdown hook plus a done hook that reports which compilers actually rebuilt. Both in 5.110.0. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Adds the renderEmbeddedSource and embeddedSourceHash compilation hooks, and updates the HTML HMR note: 5.110.0 patches the head in place instead of falling back to a full page reload. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
2 tasks
Resolves the overlap with #8339, which documented the same two options independently: - optimization.minimize: keeps main's version, and adds the three facts it was missing (the CSS/HTML minifiers only run with experiments.css / experiments.html and step aside for an already configured minimizer, the options configure the default minimizer only, and the javascript default is { compress: { passes: 2 } }). - entry descriptor html: drops this branch's separate 'HTML per entry' section in favour of main's paragraph, noting there that the object form arrived in 5.110.0. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
bjohansebas
marked this pull request as ready for review
August 28, 2026 03:32
The local prettier (3.8.3) reformatted two of main's inline block comments onto their own lines; the declared version (3.9.6), which CI installs, wants them inline, which is how they are committed on main. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Documents the configuration and API surface added in webpack 5.110.0 (webpack/webpack#21545).
Everything here was checked against the schema and the implementation on
webpack@main, not against the changeset summaries.What is documented
configuration/performanceperformance.all,hints: "stats"and the 31 new opt-in checks, each with its default and its rationale, plus an overview table grouping them by what they inspect and a note on which ones are not gated onhintsconfiguration/moduleRule.glob(pattern syntax,!negation, use inside aConditionobject) andRule.descriptionRelativePathconfiguration/externalsexternalsPresets.nodeModulesand itsallowlist, which replacewebpack-node-externals, and the{ external, sideEffects }value form. Also fills in thebunanddenopreset rows the table was missingconfiguration/output[containedfile]/[containedpath]placeholders,output.library.umdAmdContainer,output.resourceHints.dedupe, and thedeferImport/sourceImportenvironment flagsconfiguration/optimizationoptimization.minimizeas an object:javascript,css(14 options) andhtml(18 options), with defaults and when each minifier runsconfiguration/entry-contexthtmloption, including the object form that overridesoutput.htmlper optionconfiguration/statsstats.hintsandstats.hintsCountapi/module-variables,api/node,api/compilation-hooks__webpack_css_server_styles__, the MultiCompiler hooks (shutdown, anddonereporting which compilers rebuilt),renderEmbeddedSourceandembeddedSourceHashconfiguration/experiments<head>is now patched in place on hot update instead of forcing a full reloadLeft out
Release items with no configuration surface: resolve errors suggesting the closest name, the CSS/HTML printer internals, CommonJS tree shaking, and the parser performance work. Those belong in the release blog post, which comes as a separate PR on top of this branch.
Notes
markdownlintandprettierpass; the 39 new internal links were checked to resolve to a real file and anchor.valewas not run locally.