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 — fix(performance): correct the fallout from the hint option rename by alexander-akait · Pull Request #21966 · webpack/webpack

Conversation

@alexander-akait

@alexander-akait alexander-akait commented Sep 5, 2026 •
edited by coderabbitai Bot
Loading

Uh oh!

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

Copy link
Copy Markdown
Member

Summary

Collapsing four unused* gates into unusedConfig in #21961 left three statements behind that are now wrong. None has been released — unusedConfig is added: 5.111.0 and the package is still on 5.110.3 — so this corrects them before they ship.

unusedConfig's description claimed (requires 'hints' to be enabled). It does not: UnusedAliasesPlugin and its three siblings read hints only to pick the severity and never return early, so they report with hints: false just as they did under their old names. All four of those old descriptions omitted the clause, and the other two ungated checks, osDependentRules and conflictingResourceHints, still do. The description reaches the CLI help and types.d.ts, so it is user-facing.

The other two are comments. The Deliberately not gated on 'hints' notes belonging to the deleted alias, define and externals gates were left attached to the next surviving blocks, so the source asserted that unusedAssets is ungated when UnusedAssetsPlugin opens with if (!hints) return;. And osDependentRules still pointed at "unusedConfig below", which the rename moved above it.

Refs #17122

What kind of change does this PR introduce?

fix

Did you add tests for your changes?

No — nothing executable changed. The only behavioural surface is the schema description, which test/__snapshots__/Cli.basictest.js.snap already pins and which is updated here. lint:types, lint:comments, ESLint, Defaults/Validation and the 682 configCases/performance cases pass.

Does this PR introduce a breaking change?

No. The corrected option has never appeared in a release, and no runtime behaviour changes.

If relevant, what needs to be documented once your changes are merged or what have you already documented?

The matching webpack.js.org change documents unusedConfig as ungated, alongside osDependentRules and conflictingResourceHints.

Use of AI

Claude Code was used, under review at each step. The three defects were found while writing the documentation for #21961: the docs had to state which checks are gated on hints, and checking that against the source rather than the schema showed the two disagreeing. Which plugins gate was then confirmed per plugin rather than inferred from the surrounding comments.

No changeset: the guide says to union same-topic entries, and #21961's entry is still pending for this same release.


🤖 Generated with Claude Code

https://claude.ai/code/session_01FxbjLoCKW57MoXMHEzmruX


Generated by Claude Code

Summary by CodeRabbit

  • Documentation

    • Updated the description of the performance.unusedConfig option for clearer configuration guidance.
    • Removed an outdated note about requiring performance hints; the option’s behavior and schema remain unchanged.
  • Maintenance

    • Simplified internal performance plugin wiring comments without changing runtime behavior.

Sorry, something went wrong.

Uh oh!

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

All reactions
alexander-akait added 2 commits September 5, 2026 12:13
@alexander-akait
docs: correct the performance gate comments left by the option rename
9a9fe29
@alexander-akait
fix(performance): drop the false hints requirement from unusedConfig
89e20bc
@changeset-bot

changeset-bot Bot commented Sep 5, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 89e20bc

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

All reactions

Sorry, something went wrong.

Uh oh!

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

@github-actions github-actions Bot added area: config Options, defaults, validation (lib/config, schemas/) area: types types.d.ts, JSDoc annotations, hand-maintained declarations labels Sep 5, 2026
@alexander-akait alexander-akait mentioned this pull request Sep 5, 2026
docs(performance): document the grouped hint options webpack/webpack.js.org#8350
Merged
@github-actions

github-actions Bot commented Sep 5, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

This PR is packaged and the instant preview is available (220b0aa).

Install it locally:

  • npm
npm i -D webpack@https://pkg.pr.new/webpack@220b0aa
  • yarn
yarn add -D webpack@https://pkg.pr.new/webpack@220b0aa
  • pnpm
pnpm add -D webpack@https://pkg.pr.new/webpack@220b0aa
All reactions

Sorry, something went wrong.

Uh oh!

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

@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Types Coverage

Coverage after merging fix/performance-rename-fallout into main will be
99.20%
Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
bin
   webpack.js98.82%100%100%98.82%103
examples
   build-common.js100%100%100%100%
   buildAll.js100%100%100%100%
   examples.js100%100%100%100%
   template-common.js98.21%100%100%98.21%72
examples/custom-javascript-parser
   test.filter.js100%100%100%100%
examples/custom-javascript-parser/internals
   acorn-parse.js100%100%100%100%
   meriyah-parse.js100%100%100%100%
   oxc-parse.js100%100%100%100%
examples/markdown
   webpack.config.mjs100%100%100%100%
examples/module-federation
   test.filter.js100%100%100%100%
examples/reexport-components
   test.filter.js100%100%100%100%
examples/typescript
   test.filter.js100%100%100%100%
examples/typescript-non-erasable
   test.filter.js50%100%100%50%5
examples/virtual-modules
   test.filter.js100%100%100%100%
examples/wasm-bindgen-esm
   test.filter.js100%100%100%100%
examples/wasm-complex
   test.filter.js100%100%100%100%
examples/wasm-emscripten
   test.filter.js100%100%100%100%
examples/wasm-simple
   test.filter.js100%100%100%100%
examples/wasm-simple-source-phase
   test.filter.js100%100%100%100%
lib
   APIPlugin.js100%100%100%100%
   AsyncDependenciesBlock.js100%100%100%100%
   AutomaticPrefetchPlugin.js93.94%100%100%93.94%59, 62
   BannerPlugin.js100%100%100%100%
   Cache.js98.25%100%100%98.25%104
   CacheFacade.js100%100%100%100%
   Chunk.js99.72%100%100%99.72%42
   ChunkGraph.js100%100%100%100%
   ChunkGroup.js100%100%100%100%
   ChunkTemplate.js100%100%100%100%
   CircularModulesPlugin.js99.35%100%100%99.35%244
   CleanPlugin.js97.81%100%100%97.81%111, 125, 128, 212, 232
   CodeGenerationResults.js100%100%100%100%
   CompatibilityPlugin.js100%100%100%100%
   Compilation.js98.64%100%100%98.64%1738, 2057, 2064, 2072, 2094, 2097, 3036, 3515–3516, 3548, 4137, 4141, 4238, 4259, 4382, 4415, 4468–4469, 4473, 4478, 4494–4495, 4509–4510, 4515–4516, 5039, 5065, 5907, 5924, 5942, 5958, 5973, 5998, 6001, 6365, 6368–6369, 6374, 6389, 6472, 6496, 6610, 818–819
   Compiler.js98.84%100%100%98.84%1068, 1105, 1108, 1174–1175, 1183, 918, 951
   ConcatenationScope.js99.10%100%100%99.10%293
   ConditionalInitFragment.js100%100%100%100%
   ConstPlugin.js100%100%100%100%
   ContextExclusionPlugin.js100%100%100%100%
   ContextModule.js99.88%100%100%99.88%1557
   ContextModuleFactory.js95.66%100%100%95.66%230, 257, 276, 280–281, 289, 465, 486, 491, 532, 543, 545, 549, 552, 558–559
   ContextReplacementPlugin.js100%100%100%100%
   DefinePlugin.js99.13%100%100%99.13%1124, 197–198, 214, 233, 307
   DependenciesBlock.js100%100%100%100%
   Dependency.js98.54%100%100%98.54%498, 545
   DependencyTemplate.js100%100%100%100%
   DependencyTemplates.js100%100%100%100%
   DotenvPlugin.js98.07%100%100%98.07%395, 443, 456–457
   DynamicEntryPlugin.js100%100%100%100%
   EntryOptionPlugin.js100%100%100%100%
   EntryPlugin.js100%100%100%100%
   Entrypoint.js100%100%100%100%
   EnvironmentPlugin.js97.14%100%100%97.14%49
   ErrorHelpers.js100%100%100%100%
   EvalDevToolModulePlugin.js100%100%100%100%
   EvalSourceMapDevToolPlugin.js100%100%100%100%
   ExportsInfo.js99.26%100%100%99.26%415, 431, 763, 860, 878, 922, 927
   ExportsInfoApiPlugin.js100%100%100%100%
   ExternalModule.js98.76%100%100%98.76%1340, 1343, 590–594, 596, 756
   ExternalModuleFactoryPlugin.js100%100%100%100%
   ExternalsPlugin.js100%100%100%100%
   FileSystemInfo.js99.75%100%100%99.75%187, 285, 3947, 3962, 3986, 3989
   FlagAllModulesAsUsedPlugin.js100%100%100%100%
   FlagDependencyExportsPlugin.js96.72%100%100%96.72%105, 122, 142, 146, 507, 512, 519, 534, 537, 94
   FlagDependencyUsagePlugin.js100%100%100%100%
   FlagEntryExportAsUsedPlugin.js100%100%100%100%
   Generator.js100%100%100%100%
   HotModuleReplacementPlugin.js100%100%100%100%
   HotUpdateChunk.js100%100%100%100%
   IgnorePlugin.js100%100%100%100%
   IgnoreWarningsPlugin.js100%100%100%100%
   InitFragment.js100%100%100%100%
   JavascriptMetaInfoPlugin.js100%100%100%100%
   LazyBarrel.js100%100%100%100%
   LibraryTemplatePlugin.js100%100%100%100%
   LoaderOptionsPlugin.js100%100%100%100%
   LoaderTargetPlugin.js100%100%100%100%
   MainTemplate.js100%100%100%100%
   ManifestPlugin.js100%100%100%100%
   Module.js98.50%100%100%98.50%1317, 1322, 1381, 1395, 1457, 1466
   ModuleFactory.js100%100%100%100%
   ModuleFilenameHelpers.js98.90%100%100%98.90%111, 113
   ModuleGraph.js99.78%100%100%99.78%1180
   ModuleGraphConnection.js100%100%100%100%
   ModuleInfoHeaderPlugin.js100%100%100%100%
   ModuleNotFoundError.js100%100%100%100%
   ModuleProfile.js100%100%100%100%
   ModuleSourceTypeConstants.js100%100%100%100%
   ModuleTemplate.js100%100%100%100%
   ModuleTypeConstants.js100%100%100%100%
   MultiCompiler.js98.88%100%100%98.88%462, 542, 729, 794
   MultiStats.js100%100%100%100%
   MultiWatching.js93.75%100%100%93.75%37, 71
   NoEmitOnErrorsPlugin.js100%100%100%100%
   NodeStuffPlugin.js100%100%100%100%
   NormalModule.js98.10%100%100%98.10%1044, 1047, 1066, 1083, 1353, 1387, 1403, 1860, 2156, 2161–2169, 2171, 29
   NormalModuleFactory.js98.01%100%100%98.01%1341, 1644, 1661, 1670, 1674, 1702, 1709, 1713, 1718, 1730, 1741, 1790, 1801, 1811, 1862–1864, 1871, 732, 744
   NormalModuleReplacementPlugin.js100%100%100%100%
   NullFactory.js100%100%100%100%
   OptimizationStages.js100%100%100%100%
   OptionsApply.js100%100%100%100%
   Parser.js100%100%100%100%
   PlatformPlugin.js100%100%100%100%
   PrefetchPlugin.js100%100%100%100%
   ProgressPlugin.js99.80%100%100%99.80%694
   ProvidePlugin.js100%100%100%100%
   RawModule.js100%100%100%100%
   RecordIdsPlugin.js100%100%100%100%
   RequestShortener.js100%100%100%100%
   ResolverFactory.js100%100%100%100%
   RuntimeGlobals.js100%100%100%100%
   RuntimeModule.js100%100%100%100%
   RuntimePlugin.js95.45%100%100%95.45%314, 390, 399, 402, 415–416, 430, 448, 469–470, 493, 513–514, 550–551, 574, 587–588, 660, 673, 694, 713
   RuntimeTemplate.js99.64%100%100%99.64%364, 3723, 4385, 4397, 4402, 4404, 4409
   SelfModuleFactory.js100%100%100%100%
   SingleEntryPlugin.js100%100%100%100%
   SourceMapDevToolModuleOptionsPlugin.js100%100%100%100%
   SourceMapDevToolPlugin.js97.25%100%100%97.25%229, 233, 235, 429, 440, 469, 572, 575–576, 899, 920, 923
   Stats.js100%100%100%100%
   Template.js100%100%100%100%
   TemplatedPathPlugin.js99.48%100%100%99.48%366–367
   UseStrictPlugin.js100%100%100%100%
   WarnCaseSensitiveModulesPlugin.js100%100%100%100%
   WarnDeprecatedOptionPlugin.js100%100%100%100%
   WarnNoModeSetPlugin.js100%100%100%100%
   WatchIgnorePlugin.js100%100%100%100%
   Watching.js100%100%100%100%
   WebpackError.js100%100%100%100%
   WebpackIsIncludedPlugin.js100%100%100%100%
   WebpackOptionsApply.js100%100%100%100%
   WebpackOptionsDefaulter.js100%100%100%100%
   buildChunkGraph.js99.87%100%100%99.87%375
   cli.js98.63%100%100%98.63%10, 117, 547, 579, 629, 903
   index.js99.73%100%100%99.73%184
   validateSchema.js94.67%100%100%94.67%100, 87, 89, 98
   webpack.js97.12%100%100%97.12%10, 274, 296, 298
lib/asset
   AssetBytesGenerator.js100%100%100%100%
   AssetBytesParser.js100%100%100%100%
   AssetGenerator.js100%100%100%100%
   AssetModule.js100%100%100%100%
   AssetModulesPlugin.js98.15%100%100%98.15%338, 362, 365, 495, 57, 62
   AssetParser.js100%100%100%100%
   AssetSourceGenerator.js100%100%100%100%
   AssetSourceParser.js100%100%100%100%
   RawDataUrlModule.js100%100%100%100%
   WebManifestGenerator.js100%100%100%100%
   WebManifestParser.js100%100%100%100%
lib/async-modules
   AsyncModuleHelpers.js100%100%100%100%
   AwaitDependenciesInitFragment.js100%100%100%100%
   InferAsyncModulesPlugin.js100%100%100%100%
   isGeneratorLowered.js100%100%100%100%
lib/bun
  &
All reactions

Sorry, something went wrong.

Uh oh!

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

@coderabbitai

coderabbitai Bot commented Sep 5, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Team

Run ID: 6f2d4bca-dfea-49b3-b5db-6b58cdbdd1aa

📥 Commits

Reviewing files that changed from the base of the PR and between c3a7f01 and 89e20bc.

⛔ Files ignored due to path filters (3)
  • declarations/WebpackOptions.d.ts is excluded by !declarations/**
  • test/__snapshots__/Cli.basictest.js.snap is excluded by !**/*.snap, !test/**/__snapshots__/**
  • types.d.ts is excluded by !types.d.ts
📒 Files selected for processing (2)
  • lib/WebpackOptionsApply.js
  • schemas/WebpackOptions.json

Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review.


📝 Walkthrough

Walkthrough

The change removes explanatory comments from performance plugin wiring and updates the unusedConfig schema description. Plugin conditions, option type, and version metadata remain unchanged.

Changes

Performance configuration

Layer / File(s) Summary
Configuration documentation updates
lib/WebpackOptionsApply.js, schemas/WebpackOptions.json
Comments around osDependentRules and unusedAssets wiring were removed. The unusedConfig description no longer states that reporting requires hints; its boolean type and added value remain unchanged.

Suggested reviewers: xiaoxiaojx

Merge Risk: ⚪ Minimal · up to 89e20

This updates performance-configuration wording to remove an incorrect hints requirement and correct related documentation without changing runtime behavior. The change is ready to merge.

🚥 Pre-merge checks | ✅ 3 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title uses the required conventional-commit format and accurately describes the performance-option corrections. The branch prefix is not provided, so the required match between the type and branch… Provide the branch name or branch prefix to confirm that the fix type matches it.
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title uses the required conventional-commit format and accurately describes the performance-option corrections. The branch prefix is not provided, so the required match between the type and branch prefix cannot be verified.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
  • X
  • Mastodon
  • Reddit
  • LinkedIn

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

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

@codecov

codecov Bot commented Sep 5, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.23%. Comparing base (c3a7f01) to head (89e20bc).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #21966   +/-   ##
=======================================
  Coverage   95.22%   95.23%           
=======================================
  Files         711      711           
  Lines       93456    93456           
  Branches    28408    28408           
=======================================
+ Hits        88998    89002    +4     
+ Misses       4458     4454    -4     
Flag Coverage Δ
css-parsing 24.66% <ø> (ø)
html5lib 29.51% <ø> (ø)
integration 87.64% <ø> (+<0.01%) ⬆️
syntax-equivalence 81.77% <ø> (ø)
test262 43.97% <ø> (ø)
unit 57.85% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
All reactions

Sorry, something went wrong.

Uh oh!

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

@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Generated code size

Comparing 89e20bc merged into c3a7f01 against c3a7f01. Merging this pull request will not change the code webpack generates.

Changed New Deleted Unchanged Gzip change Raw change Gzip new/gone Raw new/gone
Cases 0 0 0 2042 — — — —
Assets 0 0 0 7409 — — — —
Runtimes 0 0 0 2323 — — — —

Gzip change decides — it is what a user downloads, and a re-encoding can cut raw bytes while costing wire bytes. Raw change is the tiebreak: it is what the generator wrote, so it is what has to be decompressed and parsed. Both are over assets both runs emit; bytes an added or deleted case brings with it are counted apart, under new/gone. Brotli and zstd are per asset in the table below.

No asset changed size.

No runtime gained or lost a runtime module.

Built test/configCases with the defaults a user gets: 2042 case(s), 7409 asset(s), 81 emitted nothing.

All reactions

Sorry, something went wrong.

Uh oh!

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

@codspeed

codspeed Bot commented Sep 5, 2026

Copy link
Copy Markdown

Merging this PR will improve performance by 25.76%

⚠️ Different runtime environments detected

Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.

Open the report in CodSpeed to investigate

⚡ 1 improved benchmark
✅ 387 untouched benchmarks

Performance Changes

Mode Benchmark BASE HEAD Efficiency
⚡ Memory benchmark "import-meta-glob", scenario '{"name":"mode-development-rebuild","mode":"development","watch":true}' 1,286.7 KB 1,023.2 KB +25.76%

Tip

Curious why performance improved? Comment @codspeedbot explain why performance improved on this PR, or directly use the CodSpeed MCP with your agent.


Comparing fix/performance-rename-fallout (89e20bc) with main (cde81a3)1

Open in CodSpeed

Footnotes

  1. No successful run was found on main (c3a7f01) during the generation of this report, so cde81a3 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

All reactions

Sorry, something went wrong.

Uh oh!

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

@alexander-akait
alexander-akait merged commit 220b0aa into main Sep 5, 2026
64 checks passed

Uh oh!

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

@alexander-akait
alexander-akait deleted the fix/performance-rename-fallout branch September 5, 2026 15:03
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

area: config Options, defaults, validation (lib/config, schemas/) area: types types.d.ts, JSDoc annotations, hand-maintained declarations

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

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.