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 — refactor: group wasm, stats, the output plugins and Parser out of lib/ root by alexander-akait · Pull Request #22220 · webpack/webpack

Conversation

@alexander-akait

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

Uh oh!

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

Copy link
Copy Markdown
Member

Summary

Continues the lib/ grouping from #22118, #22191, #22202 and #22213, in four commits. lib/wasm-async/ folds into lib/wasm/, since the async path is the WebAssembly path a build takes and lib/wasm/ already held the two pieces neither path owns — lib/wasm-sync/ stays apart because webpack 6 removes it. Stats and MultiStats join the factories and printer they front in lib/stats/. A new lib/output/ takes the four plugins that shape the file set written into output.path rather than the modules it comes from — CopyPlugin and CleanPlugin, which output.copy and output.clean construct, plus BannerPlugin and ManifestPlugin. And Parser moves beside Generator in lib/module/, being the base every language's parser extends. 15 files leave lib/ root (23 real files → 16); behaviour is unchanged and types.d.ts regenerates byte-identical.

No re-export is owed. AsyncWasmModule keeps its old serializer request restorable through registerLegacyRequest, and lib/Parser is recorded under removed instead of re-exported: both packages the scan finds require it inside a try to detect webpack 4 — hard-source-webpack-plugin alongside lib/JsonParser, @sector-labs/lingui-loader alongside lib/JavascriptGenerator — so a re-export would answer the probe and send them down the webpack 4 branch.

What kind of change does this PR introduce?

refactor

Did you add tests for your changes?

No new cases — test/unitCases/deepPathShims.unittest.js already asserts every deep path the recorded scan names still resolves, off the same record this updates.

Does this PR introduce a breaking change?

No. compiler.webpack.* and the documented API are unchanged, every deep path the scan found still resolves or is recorded as unreachable, and a pre-move persistent cache pack still restores.

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

n/a — the Architecture listing in AGENTS.md gains a bullet for lib/output/ and for lib/wasm-sync/, with updated ones for lib/wasm/, lib/stats/ and lib/module/.

Use of AI

Claude Code performed the moves and reference rewrites and ran the verification; each grouping was reviewed before pushing. yarn lint passes all nine stages, yarn fix:special leaves types.d.ts byte-identical, no Pack got invalid line appears across the covering configCases/, and the lib/Parser decision was made by reading each importing package's tarball — the import sites are try-block webpack 4 probes — rather than its download count.


Generated by Claude Code

Summary by CodeRabbit

  • Refactor
    • Reorganized internal modules for parsers, statistics, output plugins, and WebAssembly support.
    • Updated public module paths and type references to match the new structure.
    • Preserved compatibility for legacy WebAssembly serialization identifiers.
  • Documentation
    • Updated architecture documentation to reflect the reorganized source directories.
  • Chores
    • Updated schemas, tooling metadata, and tests for the revised module locations.

Sorry, something went wrong.

Uh oh!

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

All reactions
alexander-akait added 4 commits September 21, 2026 06:05
@alexander-akait
refactor: join the async WebAssembly path to lib/wasm
1ea35f1
`lib/wasm/` held only the two pieces neither path owns —
`EnableWasmLoadingPlugin` and `wasmModuleFilename` — while the eight files
implementing the path a build actually takes sat beside it in
`lib/wasm-async/`. The async path is the WebAssembly path, so it moves in.

`lib/wasm-sync/` stays where it is: it goes away in webpack 6, and standing
apart is what says so.

`AsyncWasmModule` keeps `webpack/lib/wasm-async/AsyncWasmModule` restorable
through `registerLegacyRequest`, or a cache pack written before this stops
loading.
@alexander-akait
refactor: move Stats and MultiStats into lib/stats
252b57d
`lib/stats/` held the factories and the printer a run's output is rendered
through, while the two objects a run actually hands back stood in `lib/`
root. They are the front of that machinery, so they belong beside it.

Neither path is imported by any package the recorded scan reaches, so
neither owes a re-export.
@alexander-akait
refactor: group the output plugins into lib/output
388dabd
Four plugins in `lib/` root shape the set of files a build writes rather than
the modules it writes them from: `CopyPlugin` adds to it, `CleanPlugin` prunes
it, `BannerPlugin` rewrites what an asset holds, and `ManifestPlugin` emits a
description of the rest.

`output` is the name they already answer to — `output.copy` and `output.clean`
construct two of them — and it leaves room for the next plugin of this kind.
Naming the directory for the hook they happen to share would have named when
they run instead of what they act on.

The four `tsType` entries pointing at `CopyPlugin`, `CleanPlugin`,
`BannerPlugin` and `ManifestPlugin` move with them, in both quoting styles the
schemas use.
@alexander-akait
refactor: move the Parser base class beside Generator in lib/module
712d397
`Parser` is the abstract base every language's parser extends — json, html,
asset, css, wasm and javascript — which makes it the counterpart of
`Generator`, already in `lib/module/`. The pair belongs together.

`lib/Parser` is recorded as removed rather than re-exported. Both packages the
scan finds require it inside a `try` to detect webpack 4 —
hard-source-webpack-plugin alongside `lib/JsonParser`, @sector-labs/lingui-loader
alongside `lib/JavascriptGenerator`, neither of which webpack 5 has — so a
re-export would answer the probe and send them down the webpack 4 branch.
@github-actions github-actions Bot added area: wasm WebAssembly modules (lib/wasm-*) area: parser JavaScript parsing and dependency analysis (lib/javascript, lib/dependencies) area: config Options, defaults, validation (lib/config, schemas/) area: css CSS support (lib/css) area: html Experimental HTML support (lib/html) area: optimization Tree-shaking, splitChunks, concatenation, ids (lib/optimize, lib/ids) area: runtime Emitted runtime and chunk loading across targets (lib/runtime, lib/web, lib/node, lib/esm) area: tooling Repo tooling, codegen, CLI entry (tooling/, bin/) labels Sep 21, 2026
@coderabbitai

coderabbitai Bot commented Sep 21, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

Understand this PR’s impact

Explore downstream dependencies and potential security impact with Blast Radius.

View blast radius →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: webpack/webpack/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: d02ff1ab-ef0d-4baa-9175-76ce616cf5d0

📥 Commits

Reviewing files that changed from the base of the PR and between 358df69 and 712d397.

📒 Files selected for processing (54)
  • AGENTS.md
  • lib/Compilation.js
  • lib/Compiler.js
  • lib/MultiCompiler.js
  • lib/asset/AssetBytesParser.js
  • lib/asset/AssetParser.js
  • lib/asset/AssetSourceParser.js
  • lib/asset/WebManifestParser.js
  • lib/config/WebpackOptionsApply.js
  • lib/css/CssParser.js
  • lib/define/DefinePlugin.js
  • lib/html/HtmlParser.js
  • lib/index.js
  • lib/javascript/JavascriptParser.js
  • lib/json/JsonParser.js
  • lib/module/NormalModule.js
  • lib/module/NormalModuleFactory.js
  • lib/module/Parser.js
  • lib/node/ReadFileCompileAsyncWasmPlugin.js
  • lib/optimize/InnerGraph.js
  • lib/output/BannerPlugin.js
  • lib/output/CleanPlugin.js
  • lib/output/CopyPlugin.js
  • lib/output/ManifestPlugin.js
  • lib/stats/MultiStats.js
  • lib/stats/Stats.js
  • lib/util/internalSerializables.js
  • lib/wasm-sync/WebAssemblyParser.js
  • lib/wasm/AsyncWasmCompileRuntimeModule.js
  • lib/wasm/AsyncWasmLoadingRuntimeModule.js
  • lib/wasm/AsyncWasmModule.js
  • lib/wasm/AsyncWebAssemblyGenerator.js
  • lib/wasm/AsyncWebAssemblyJavascriptGenerator.js
  • lib/wasm/AsyncWebAssemblyModulesPlugin.js
  • lib/wasm/AsyncWebAssemblyParser.js
  • lib/wasm/EnableWasmLoadingPlugin.js
  • lib/wasm/UniversalCompileAsyncWasmPlugin.js
  • lib/watch/Watching.js
  • lib/web/FetchCompileAsyncWasmPlugin.js
  • lib/webpack.js
  • schemas/WebpackOptions.json
  • schemas/plugins/BannerPlugin.json
  • schemas/plugins/ManifestPlugin.json
  • test/configCases/custom-source-type/localization/webpack.config.js
  • test/configCases/errors/generator-without-generate-error/webpack.config.js
  • test/configCases/module-classes/wasm/webpack.config.js
  • test/unitCases/Compiler.unittest.js
  • test/unitCases/HtmlEntryWrapper.unittest.js
  • test/unitCases/HtmlParser.unittest.js
  • test/unitCases/ImportMetaRoundTrip.unittest.js
  • test/unitCases/JavascriptParser.unittest.js
  • test/unitCases/NormalModule.unittest.js
  • test/unitCases/ParserWithoutAcorn.unittest.js
  • tooling/deep-webpack-imports.json

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


📝 Walkthrough

Walkthrough

The change relocates parser, stats, output plugin, and asynchronous WebAssembly modules. Imports, exports, type references, schemas, tests, serialization registrations, and architecture documentation are updated for the new paths.

Changes

Module directory relocation

Layer / File(s) Summary
Parser and stats module paths
AGENTS.md, lib/{asset,css,html,javascript,json,module,optimize}/*, lib/{Compilation,Compiler,MultiCompiler,index,watch,webpack}.js, lib/stats/*, test/*, tooling/deep-webpack-imports.json
Parser references now use lib/module/Parser. Stats references now use lib/stats. Related exports, type imports, tests, and removed-path records are updated.
Output plugin relocation
AGENTS.md, lib/config/WebpackOptionsApply.js, lib/index.js, lib/output/*, schemas/*
Output plugins use paths relative to lib/output, public exports and configuration wiring point to the relocated modules, and schema type references use the new locations.
WebAssembly module paths
AGENTS.md, lib/{config,module,node,util,wasm,wasm-sync,web}/*, lib/index.js, test/configCases/module-classes/wasm/webpack.config.js
Async WebAssembly references now use lib/wasm. AsyncWasmModule registers both current and legacy serialization identifiers. Documentation and the WebAssembly test configuration reflect the new paths.

Suggested labels: area: types

Priority: ⬇️ Low

Change: Refactor

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title uses the valid Conventional Commit type refactor and accurately describes the directory-grouping changes in the pull request.
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.

Warning

Some tools did not complete. Review the errors below.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

lib/Compilation.js

ESLint failed to execute (timeout).

lib/Compiler.js

ESLint skipped: the matched ESLint configuration already failed (timeout).

lib/MultiCompiler.js

ESLint skipped: the matched ESLint configuration already failed (timeout).

  • 41 others

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.

@github-actions

github-actions Bot commented Sep 21, 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 (e7911a5).

Install it locally:

  • npm
npm i -D webpack@https://pkg.pr.new/webpack@e7911a5
  • yarn
yarn add -D webpack@https://pkg.pr.new/webpack@e7911a5
  • pnpm
pnpm add -D webpack@https://pkg.pr.new/webpack@e7911a5
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 21, 2026

Copy link
Copy Markdown
Contributor

Types Coverage

Coverage after merging refactor/group-lib-root-files into main will be
98.31%
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%
   Chunk.js100%100%100%100%
   CompatibilityPlugin.js100%100%100%100%
   Compilation.js98.59%100%100%98.59%1759, 2080, 2087, 2095, 2117, 2120, 24, 3056, 3535–3536, 3568, 4157, 4161, 4260, 4281, 4406, 4443, 4450, 4503–4504, 4508, 4513, 4529–4530, 4544–4545, 4550–4551, 5074, 5100, 5930, 5947, 5965, 5981, 5996, 6021, 6024, 6392, 6395–6396, 6401, 6416, 6499, 6523, 6637, 839–840
   Compiler.js98.81%100%100%98.81%1116, 1153, 1156, 1336–1337, 1345, 848, 934, 975
   ConstPlugin.js100%100%100%100%
   Dependency.js100%100%100%100%
   DependencyTemplate.js100%100%100%100%
   EntryPlugin.js100%100%100%100%
   Entrypoint.js100%100%100%100%
   ExportsInfoApiPlugin.js100%100%100%100%
   ExternalsPlugin.js100%100%100%100%
   FileSystemInfo.js99.75%100%100%99.75%187, 285, 3947, 3962, 3986, 3989
   InitFragment.js100%100%100%100%
   JavascriptMetaInfoPlugin.js100%100%100%100%
   LibraryTemplatePlugin.js100%100%100%100%
   ModuleFilenameHelpers.js100%100%100%100%
   ModuleNotFoundError.js100%100%100%100%
   MultiCompiler.js98.88%100%100%98.88%460, 532, 719, 784
   NormalModule.js100%100%100%100%
   NullFactory.js100%100%100%100%
   ProgressPlugin.js99.80%100%100%99.80%694
   ProvidePlugin.js100%100%100%100%
   RawModule.js100%100%100%100%
   RequestShortener.js100%100%100%100%
   SingleEntryPlugin.js100%100%100%100%
   UseStrictPlugin.js100%100%100%100%
   WebpackError.js100%100%100%100%
   WebpackIsIncludedPlugin.js100%100%100%100%
   cli.js98.63%100%100%98.63%10, 117, 547, 579, 629, 903
   index.js99.73%100%100%99.73%184
   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
   BunTargetPlugin.js100%100%100%100%
lib/cache
   AddBuildDependenciesPlugin.js100%100%100%100%
   AddManagedPathsPlugin.js100%100%100%100%
   Cache.js96.49%100%100%96.49%10, 104
   CacheFacade.js100%100%100%100%
   IdleFileCachePlugin.js97.92%100%100%97.92%75, 87, 95
   MemoryCachePlugin.js92%100%100%92%33, 42
   MemoryWithGcCachePlugin.js93.42%100%100%93.42%106, 120–121, 130, 88
   PackFileCacheStrategy.js96.55%100%100%96.55%1304, 1404, 1408, 1470, 1716, 1800, 1823, 1855, 682, 701, 711–713, 715, 731–732, 737, 740, 742, 747, 752, 777, 783, 817, 823, 829, 834, 845, 854, 859–860, 862, 879, 885–886, 888
   ResolverCachePlugin.js100%100%100%100%
   getLazyHashedEtag.js100%100%100%100%
   mergeEtags.js100%100%100%100%
lib/config
   OptionsApply.js100%100%100%100%
   PlatformPlugin.js100%100%100%100%
   WebpackOptionsApply.js100%100%100%100%
   WebpackOptionsDefaulter.js100%100%100%100%
   browserslistTargetHandler.js100%100%100%100%
   defaults.js99.44%100%100%99.44%1618–1620, 1628, 283, 286, 291, 295
   defineConfig.js100%100%100%100%
   getClaimedAssetTypes.js100%100%100%100%
   normalization.js99.12%100%100%99.12%279–280, 346, 361
   target.js100%100%100%100%
   validateSchema.js94.67%100%100%94.67%100, 87, 89, 98
lib/container
   ContainerEntryDependency.js100%100%100%100%
   ContainerEntryModule.js100%100%100%100%
   ContainerEntryModuleFactory.js100%100%100%100%
   ContainerExposedDependency.js100%100%100%100%
   ContainerPlugin.js100%100%100%100%
   ContainerReferencePlugin.js100%100%100%100%
   FallbackDependency.js100%100%100%100%
   FallbackItemDependency.js100%100%100%100%
   FallbackModule.js100%100%100%100%
   FallbackModuleFactory.js100%100%100%100%
   HoistContainerReferencesPlugin.js100%100%100%100%
   ModuleFederationPlugin.js100%100%100%100%
   RemoteModule.js100%100%100%100%
   RemoteRuntimeModule.js100%100%100%100%
   RemoteToExternalDependency.js100%100%100%100%
   declaredRemotes.js100%100%100%100%
   moduleFederationHooks.js100%100%100%100%
   options.js100%100%100%100%
lib/context
   ContextExclusionPlugin.js100%100%100%100%
   ContextModule.js99.88%100%100%99.88%1495
   ContextModuleFactory.js95.66%100%100%95.66%230, 257, 276, 280–281, 289, 465, 486, 491, 532, 541, 543, 547, 550, 556–557
   ContextReplacementPlugin.js100%100%100%100%
lib/css
   CssGenerator.js99.47%100%100%99.47%1085, 136, 842
   CssInjectStyleRuntimeModule.js100%100%100%100%
   CssLoadingRuntimeModule.js100%100%100%100%
   CssModule.js82.98%100%100%82.98%186, 191–199, 201–206
   CssModulesPlugin.js99.85%100%100%99.85%826
   CssParser.js99.44%100%100%99.44%2225, 24, 2859, 2862, 2868, 2909, 2912, 2951, 2954, 3291, 4696, 4699, 841, 957, 988
   CssServerStylesRuntimeModule.js100%100%100%100%
   cssMinify.js96.43%100%100%96.43%130, 139
   data.js99.83%100%100%99.83%224, 4041
   syntax.js99.56%100%100%99.56%10229–10230, 10764–10765, 10799, 10964, 12165–12166, 12168–12169, 12171–12172, 12177, 125, 13192–13195, 14049, 14182, 14331, 14936, 15392, 15705, 17153, 17578, 17805, 18697, 2444, 3136, 3138, 3143, 3162, 3900, 3906, 6837, 6875, 6882, 8140
lib/debug
   ProfilingPlugin.js96.22%100%100%96.22%162, 418, 547, 554, 563, 567, 576, 581, 587, 592, 85
lib/define
   DefinePlugin.js98.85%100%100%98.85%1495, 268–269, 285, 304, 378, 936, 938, 943, 967
   DotenvPlugin.js98.07%100%100%98.07%391, 439, 452–453
   EnvironmentPlugin.js97.14%100%100%97.14%49
lib/deno
   DenoTargetPlugin.js100%100%100%100%
lib/dependencies
   AMDDefineDependency.js100%100%100%100%
   AMDDefineDependencyParserPlugin.js100%100%100%100%
   AMDPlugin.js99.31%100%100%99.31%54
   AMDRequireArrayDependency.js100%100%100%100%
   AMDRequireContextDependency.js100%100%100%100%
   AMDRequireDependenciesBlock.js100%100%100%100%
   AMDRequireDependenciesBlockParserPlugin.js100%100%100%100%
   AMDRequireDependency.js100%100%100%100%
   AMDRequireItemDependency.js100%100%100%100%
   AMDRuntimeModules.js95.45%100%100%95.45%
All reactions

Sorry, something went wrong.

Uh oh!

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

@coderabbitai coderabbitai Bot added the area: types types.d.ts, JSDoc annotations, hand-maintained declarations label Sep 21, 2026
@codecov

codecov Bot commented Sep 21, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 93.33333% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 95.02%. Comparing base (358df69) to head (712d397).

Files with missing lines Patch % Lines
lib/index.js 85.71% 1 Missing ⚠️
lib/output/BannerPlugin.js 80.00% 1 Missing ⚠️
lib/output/CleanPlugin.js 83.33% 1 Missing ⚠️
lib/output/ManifestPlugin.js 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #22220      +/-   ##
==========================================
- Coverage   95.02%   95.02%   -0.01%     
==========================================
  Files         753      753              
  Lines      104906   104909       +3     
  Branches    32321    32321              
==========================================
+ Hits        99688    99690       +2     
- Misses       5218     5219       +1     
Flag Coverage Δ
css-parsing 22.92% <56.52%> (+<0.01%) ⬆️
html5lib 25.87% <56.52%> (+<0.01%) ⬆️
integration 83.78% <90.00%> (-0.01%) ⬇️
syntax-equivalence 76.52% <ø> (ø)
test262 41.59% <58.33%> (+<0.01%) ⬆️
unit 74.87% <76.19%> (+<0.01%) ⬆️

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 21, 2026

Copy link
Copy Markdown
Contributor

Generated code size

Comparing base (358df69) to head (712d397). Merging this pull request changes the size of 2 asset(s) whose tests it leaves untouched.

What moved Tests Assets Gzip Raw Test edit
Changed, test untouched 1 2 🟢 ↓ -3 B 🟢 ↓ -12 B —
Changed, test edited 0 0 — — —
New 0 0 — — —
Deleted 0 0 — — —
Unchanged — 7792 — — —

Read Changed, test untouched first: the test is byte-identical on both sides, so webpack generated the difference. Changed, test edited moved partly because the test did — Test edit is how many bytes the test gained, and a bundle that grew by less is not a regression. New and Deleted are whole files, not deltas, so adding tests cannot bury a real change. Gzip decides, because that is what users download; raw is the tiebreak, and brotli and zstd are per asset below.

2 asset(s) changed size, test untouched
Asset Before After Change Gzip (9) Brotli (11) Zstd (19)
🟢 ↓ errors/module-parse-error [hash].module.wasm 1.05 KiB 1.05 KiB -6 B (-0.56%) -1 B (-0.23%) -3 B (-0.85%) -4 B (-0.92%)
🟢 ↓ errors/module-parse-error 888.bundle0.js 1.16 KiB 1.15 KiB -6 B (-0.51%) -2 B (-0.40%) -4 B (-0.93%) -3 B (-0.60%)

No runtime gained or lost a runtime module.

Built test/configCases with the defaults a user gets: 2220 test(s), 7794 asset(s), 93 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 21, 2026

Copy link
Copy Markdown

Merging this PR will regress 2 benchmarks

⚡ 3 improved benchmarks
❌ 2 regressed benchmarks
✅ 395 untouched benchmarks
⏩ 6 skipped benchmarks1

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
❌ Memory benchmark "common-libs", scenario '{"name":"mode-development-rebuild","mode":"development","watch":true}' 569.4 KB 892.3 KB -36.19%
❌ Memory benchmark "asset-modules-bytes", scenario '{"name":"mode-production","mode":"production"}' 6.6 MB 8.4 MB -21.61%
⚡ Memory benchmark "future-defaults", scenario '{"name":"mode-development-rebuild","mode":"development","watch":true}' 319 KB 169.4 KB +88.28%
⚡ Memory benchmark "many-modules-interop-runtime", scenario '{"name":"mode-production","mode":"production"}', measure 'exec' 21.3 KB 15.7 KB +35.32%
⚡ Simulation benchmark "wasm-modules-sync", scenario '{"name":"mode-development","mode":"development"}' 1,140 ms 845.2 ms +34.88%

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing refactor/group-lib-root-files (712d397) with main (358df69)

Open in CodSpeed

Footnotes

  1. 6 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

All reactions

Sorry, something went wrong.

Uh oh!

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

@alexander-akait
alexander-akait merged commit e7911a5 into main Sep 21, 2026
69 checks passed

Uh oh!

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

@alexander-akait
alexander-akait deleted the refactor/group-lib-root-files branch September 21, 2026 07:11
This was referenced Sep 21, 2026
refactor: split lib/cli.js and group the always-on JavaScript plugins #22225
Merged
refactor: group the filesystem into lib/fs and ProgressPlugin into lib/logging #22228
Merged
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: css CSS support (lib/css) area: html Experimental HTML support (lib/html) area: optimization Tree-shaking, splitChunks, concatenation, ids (lib/optimize, lib/ids) area: parser JavaScript parsing and dependency analysis (lib/javascript, lib/dependencies) area: runtime Emitted runtime and chunk loading across targets (lib/runtime, lib/web, lib/node, lib/esm) area: tooling Repo tooling, codegen, CLI entry (tooling/, bin/) area: types types.d.ts, JSDoc annotations, hand-maintained declarations area: wasm WebAssembly modules (lib/wasm-*)

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.