GeezerVison is showing github.com — refactor(types): type parsers and generators by their language's module by alexander-akait · Pull Request #22752 · webpack/webpack
Conversation
alexander-akait
commented
Oct 18, 2026
•
edited by coderabbitai
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Summary
Follow-up to #22742. Each language's parser and generator only ever sees its own module type, but read module.buildInfo as the open BuildInfo and cast it at every use. Parser and Generator are now generic over the module they handle, and each language binds them to its module's own build info and build meta:
// before
const { url } = /** @type {CssModuleBuildInfo} */ (module.buildInfo);
// after: CssGenerator extends Generator<CssNormalModule>
const { buildInfo } = /** @type {BuiltCssModule} */ (module);
Parser<TModule>, ParserState<TModule>, Generator<TModule>, ByTypeGenerator<TModule> (defaults: NormalModule).
- Per language:
XNormalModule (open view, buildInfo optional, what public methods accept) and BuiltXModule (after build, buildInfo/buildMeta required, read once inside methods). JS, CSS, asset, HTML, JSON and wasm.
- JS parser plugins see the JS module type on
parser.state.module; custom build info keys still type-check.
- Casts on
.buildInfo/.buildMeta in lib/: 124 → 87.
Compatibility: existing type names and shapes are unchanged, public methods still take a plain NormalModule, module classes stay mutually assignable (new Map([["css", CssModule], ["html", HtmlModule]])). One narrow type change: assigning a plain ParserState object directly to javascriptParser.state no longer type-checks (parse(source, state) is unchanged). JSDoc and casts only; no runtime change.
What kind of change does this PR introduce?
refactor
Did you add tests for your changes?
No, types only; the lint:types* projects check them, and the JS parser, serialization and asset/css/html/json/wasm config cases pass.
Does this PR introduce a breaking change?
No. Types only get more precise; the one narrowing is direct assignment of a plain state object to javascriptParser.state, which webpack's own code, tests and examples never do.
If relevant, what needs to be documented once your changes are merged or what have you already documented?
n/a
Use of AI
Claude Code wrote the types, ran lint, tests and a TypeScript compatibility probe against the published types; I set the design (generic parsers/generators per language, no breaking changes) and reviewed the result.
Generated by Claude Code
Summary by CodeRabbit
- Improvements
- Refined type information across modules, parsers, generators, and build statistics, improving the accuracy of editor assistance and type checking.
- Generic parser and generator types now better represent the specific module types they handle. Runtime behavior is unchanged.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Parser and Generator become generic over the module they handle. Each
language's parser and generator reads its own build info and build meta
types instead of casting module.buildInfo, and public methods still accept
a plain NormalModule.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
github-actions
Bot
added
area: wasm
WebAssembly modules (lib/wasm-*)
area: parser
JavaScript parsing and dependency analysis (lib/javascript, lib/dependencies)
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: types
types.d.ts, JSDoc annotations, hand-maintained declarations
area: watch
Watching, HMR, lazy compilation (lib/hmr, hot/)
area: tooling
Repo tooling, codegen, CLI entry (tooling/, bin/)
labels
Oct 18, 2026
|
This PR is packaged and the instant preview is available (9f25e90).
Install it locally:
npm i -D webpack@https://pkg.pr.new/webpack@9f25e90
yarn add -D webpack@https://pkg.pr.new/webpack@9f25e90
pnpm add -D webpack@https://pkg.pr.new/webpack@9f25e90
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Types CoverageCoverage after merging refactor/generic-build-info into main will be
Coverage Report| File | Stmts | Branches | Funcs | Lines | Uncovered Lines |
|---|
| bin | | webpack.js | 98.86% | 100% | 100% | 98.86% | 113 | | declarations | | WebpackOptions.ts | 99.94% | 100% | 100% | 99.94% | 4238 | | examples | | build-common.js | 100% | 100% | 100% | 100% | | | buildAll.js | 100% | 100% | 100% | 100% | | | examples.js | 100% | 100% | 100% | 100% | | | template-common.js | 98.21% | 100% | 100% | 98.21% | 72 | | examples/custom-javascript-parser | | test.filter.js | 100% | 100% | 100% | 100% | | | examples/custom-javascript-parser/internals | | acorn-parse.js | 100% | 100% | 100% | 100% | | | meriyah-parse.js | 100% | 100% | 100% | 100% | | | oxc-parse.js | 100% | 100% | 100% | 100% | | | examples/markdown | | webpack.config.mjs | 100% | 100% | 100% | 100% | | | examples/module-federation | | test.filter.js | 100% | 100% | 100% | 100% | | | examples/reexport-components | | test.filter.js | 100% | 100% | 100% | 100% | | | examples/ssr | | test.filter.js | 100% | 100% | 100% | 100% | | | examples/typescript | | test.filter.js | 100% | 100% | 100% | 100% | | | examples/typescript-non-erasable | | test.filter.js | 50% | 100% | 100% | 50% | 5 | | examples/virtual-modules | | test.filter.js | 100% | 100% | 100% | 100% | | | examples/wasm-bindgen-esm | | test.filter.js | 100% | 100% | 100% | 100% | | | examples/wasm-complex | | test.filter.js | 100% | 100% | 100% | 100% | | | examples/wasm-emscripten | | test.filter.js | 100% | 100% | 100% | 100% | | | examples/wasm-simple | | test.filter.js | 100% | 100% | 100% | 100% | | | examples/wasm-simple-source-phase | | test.filter.js | 100% | 100% | 100% | 100% | | | lib | | Chunk.js | 100% | 100% | 100% | 100% | | | Compilation.js | 98.71% | 100% | 100% | 98.71% | 1779, 2092, 2099, 2107, 2129, 2132, 3116, 3667, 3710, 4299, 4303, 4430, 4451, 4576, 4613, 4620, 4673–4674, 4678, 4683, 4699–4700, 4714–4715, 4720–4721, 5245, 5271, 6101, 6118, 6136, 6152, 6167, 6192, 6195, 6563, 6566–6567, 6572, 6587, 6670, 6694, 851–852 | | Compiler.js | 98.81% | 100% | 100% | 98.81% | 1116, 1153, 1156, 1336–1337, 1345, 848, 934, 975 | | Dependency.js | 100% | 100% | 100% | 100% | | | DependencyTemplate.js | 100% | 100% | 100% | 100% | | | EntryPlugin.js | 100% | 100% | 100% | 100% | | | Entrypoint.js | 100% | 100% | 100% | 100% | | | ExternalsPlugin.js | 100% | 100% | 100% | 100% | | | FileSystemInfo.js | 100% | 100% | 100% | 100% | | | InitFragment.js | 100% | 100% | 100% | 100% | | | LibraryTemplatePlugin.js | 100% | 100% | 100% | 100% | | | ModuleFilenameHelpers.js | 100% | 100% | 100% | 100% | | | ModuleNotFoundError.js | 100% | 100% | 100% | 100% | | | MultiCompiler.js | 98.91% | 100% | 100% | 98.91% | 489, 561, 748, 813 | | NormalModule.js | 100% | 100% | 100% | 100% | | | NullFactory.js | 100% | 100% | 100% | 100% | | | ProgressPlugin.js | 100% | 100% | 100% | 100% | | | RawModule.js | 100% | 100% | 100% | 100% | | | RequestShortener.js | 100% | 100% | 100% | 100% | | | SingleEntryPlugin.js | 100% | 100% | 100% | 100% | | | WebpackError.js | 100% | 100% | 100% | 100% | | | index.js | 100% | 100% | 100% | 100% | | | webpack.js | 98.59% | 100% | 100% | 98.59% | 306, 308 | | lib/asset | | AssetBytesGenerator.js | 100% | 100% | 100% | 100% | | | AssetBytesParser.js | 91.67% | 100% | 100% | 91.67% | 27 | | AssetGenerator.js | 100% | 100% | 100% | 100% | | | AssetModule.js | 100% | 100% | 100% | 100% | | | AssetModulesPlugin.js | 98.45% | 100% | 100% | 98.45% | 334, 360, 363, 493, 58 | | AssetParser.js | 96.15% | 100% | 100% | 96.15% | 47 | | AssetSourceGenerator.js | 100% | 100% | 100% | 100% | | | AssetSourceParser.js | 91.67% | 100% | 100% | 91.67% | 27 | | RawDataUrlModule.js | 100% | 100% | 100% | 100% | | | WebManifestGenerator.js | 100% | 100% | 100% | 100% | | | WebManifestParser.js | 100% | 100% | 100% | 100% | | | lib/async-modules | | AsyncModuleHelpers.js | 100% | 100% | 100% | 100% | | | AwaitDependenciesInitFragment.js | 100% | 100% | 100% | 100% | | | InferAsyncModulesPlugin.js | 100% | 100% | 100% | 100% | | | isGeneratorLowered.js | 100% | 100% | 100% | 100% | | | lib/bun | | BunTargetPlugin.js | 100% | 100% | 100% | 100% | | | lib/cache | | AddBuildDependenciesPlugin.js | 100% | 100% | 100% | 100% | | | AddManagedPathsPlugin.js | 100% | 100% | 100% | 100% | | | Cache.js | 98.25% | 100% | 100% | 98.25% | 104 | | CacheFacade.js | 100% | 100% | 100% | 100% | | | IdleFileCachePlugin.js | 97.92% | 100% | 100% | 97.92% | 75, 87, 95 | | MemoryCachePlugin.js | 92% | 100% | 100% | 92% | 33, 42 | | MemoryWithGcCachePlugin.js | 93.42% | 100% | 100% | 93.42% | 106, 120–121, 130, 88 | | PackFileCacheStrategy.js | 96.54% | 100% | 100% | 96.54% | 1306, 1406, 1410, 1472, 1718, 1802, 1825, 1855, 684, 703, 713–715, 717, 733–734, 739, 742, 744, 749, 754, 779, 785, 819, 825, 831, 836, 847, 856, 861–862, 864, 881, 887–888, 890 | | ResolverCachePlugin.js | 100% | 100% | 100% | 100% | | | getLazyHashedEtag.js | 100% | 100% | 100% | 100% | | | mergeEtags.js | 100% | 100% | 100% | 100% | | | lib/config | | OptionsApply.js | 100% | 100% | 100% | 100% | | | PlatformPlugin.js | 100% | 100% | 100% | 100% | | | WebpackOptionsApply.js | 100% | 100% | 100% | 100% | | | WebpackOptionsDefaulter.js | 100% | 100% | 100% | 100% | | | browserslistTargetHandler.js | 100% | 100% | 100% | 100% | | | cli.js | 98.89% | 100% | 100% | 98.89% | 114, 550, 582, 632 | | defaults.js | 99.59% | 100% | 100% | 99.59% | 1633–1635, 1643, 288, 548 | | defineConfig.js | 100% | 100% | 100% | 100% | | | getClaimedAssetTypes.js | 100% | 100% | 100% | 100% | | | normalization.js | 99.14% | 100% | 100% | 99.14% | 285–286, 356, 371 | | target.js | 100% | 100% | 100% | 100% | | | validateSchema.js | 94.67% | 100% | 100% | 94.67% | 100, 87, 89, 98 | | lib/container | | ContainerEntryDependency.js | 100% | 100% | 100% | 100% | | | ContainerEntryModule.js | 100% | 100% | 100% | 100% | | | ContainerEntryModuleFactory.js | 100% | 100% | 100% | 100% | | | ContainerExposedDependency.js | 100% | 100% | 100% | 100% | | | ContainerPlugin.js | 100% | 100% | 100% | 100% | | | ContainerReferencePlugin.js | 100% | 100% | 100% | 100% | | | FallbackDependency.js | 100% | 100% | 100% | 100% | | | FallbackItemDependency.js | 100% | 100% | 100% | 100% | | | FallbackModule.js | 100% | 100% | 100% | 100% | | | FallbackModuleFactory.js | 100% | 100% | 100% | 100% | | | HoistContainerReferencesPlugin.js | 100% | 100% | 100% | 100% | | | ModuleFederationPlugin.js | 100% | 100% | 100% | 100% | | | RemoteModule.js | 100% | 100% | 100% | 100% | | | RemoteRuntimeModule.js | 100% | 100% | 100% | 100% | | | RemoteToExternalDependency.js | 100% | 100% | 100% | 100% | | | declaredRemotes.js | 100% | 100% | 100% | 100% | | | moduleFederationHooks.js | 100% | 100% | 100% | 100% | | | options.js | 100% | 100% | 100% | 100% | | | lib/context | | ContextExclusionPlugin.js | 100% | 100% | 100% | 100% | | | ContextModule.js | 99.88% | 100% | 100% | 99.88% | 1495 | | ContextModuleFactory.js | 95.70% | 100% | 100% | 95.70% | 230, 257, 276, 280–281, 289, 466, 487, 492, 534, 543, 545, 549, 552, 558–559 | | ContextReplacementPlugin.js | 100% | 100% | 100% | 100% | | | lib/css | | CssGenerator.js | 99.29% | 100% | 100% | 99.29% | 1094, 129, 305, 847 | | CssInjectStyleRuntimeModule.js | 100% | 100% | 100% | 100% | | | CssLoadingRuntimeModule.js | 100% | 100% | 100% | 100% | | | CssModule.js | 100% | 100% | 100% | 100% | | | CssModulesPlugin.js | 98.72% | 100% | 100% | 98.72% | 217, 418, 432, 445, 458, 481, 494, 507, 520 | | CssParser.js | 99.76% | 100% | 100% | 99.76% | 1090, 2425, 3072, 3075, 3081, 3514, 943 | | CssServerStylesRuntimeModule.js | 100% | 100% | 100% | 100% | | | conventions.js | 98.65% | 100% | 100% | 98.65% | 93 | | cssMinify.js | 100% | 100% | 100% | 100% | | | data.js | 99.84% | 100% | 100% | 99.84% | 229, 5601 | | syntax-parser.js | 99.69% | 100% | 100% | 99.69% | 10787–10788, 11326–11327, 11364, 11574, 11623, 13941, 14002–14005, 14110–14111, 14209–14210, 14929, 15226, 15228, 15748, 16114, 18257, 2619, 3326, 3328, 3333, 3352, 4101, 4107 | | syntax-printer.js | 99.33% | 100% | 100% | 99.33% | 2603–2604, 2606–2607, 2609–2610, 2615, 2885–2888, 2981, 353, 3666, 4091, 4227, 4927, 5238, 6026, 727 | | syntax.js | 100% | 100% | 100% | 100% | | | topologicalSort.js | 100% | 100% | 100% | 100% | | | lib/debug | | ProfilingPlugin.js | 97.35% | 100% | 100% | 97.35% | 582, 589, 598, 602, 611, 616, 622, 627 | | lib/define | | DefinePlugin.js | 99.42% | 100% | 100% | 99.42% | 1488, 936, 938, 943, 967 | | DotenvPlugin.js | 97.58% | 100% | 100% | 97.58% | 276, 391, 439, 452–453 | | EnvironmentPlugin.js | 100% | 100% | 100% | 100% | | | lib/deno | | DenoTargetPlugin.js | 100% | 100% | 100% | 100% | | | lib/dependencies | | ConstDependency.js | 100% | 100% | 100% | 100% | | | ContextElementDependency.js | 100% | 100% | 100% | 100% | | | NullDependency.js | 100% | 100% | 100% | 100% | | | lib/dependencies/amd | | AMDDefineDependency.js | 100% | 100% | 100% | 100% | | | AMDDefineDependencyParserPlugin.js | 100% | 100% | 100% | 100% | | | AMDPlugin.js | 99.31% | 100% | 100% | 99.31% | 54 | | AMDRequireArrayDependency.js | 100% | 100% | 100% | 100% | | | AMDRequireContextDependency.js | 100% | 100% | 100% | 100% | | | AMDRequireDependenciesBlock.js | 100% | 100% | 100% | 100% | | | AMDRequireDependenciesBlockParserPlugin.js | 100% | 100% | 100% | 100% | | | AMDRequireDependency.js | 100% | 100% | 100% | 100% | | | AMDRequireItemDependency.js | 100% | 100% | 100% | 100% | | | AMDRuntimeModules.js | 95.45% | 100% | 100% | 95.45% | 65 | | LocalModule.js | 100% | 100% | 100% | 100% | | | LocalModuleDependency.js | 100% | 100% | 100% | 100% | | | LocalModulesHelpers.js | 100% | 100% | 100% | 100% | | | RequireJsStuffPlugin.js | 100% | 100% | 100% | 100% | | | UnsupportedDependency.js | 100% | 100% | 100% | 100% | | | lib/dependencies/commonjs | | |
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Oct 18, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

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:
c66db6ad-577a-402f-a1bb-f31261941116
📥 Commits
-
Reviewing files that changed from the base of the PR and between 8a5c37e and 73ddc1b.
⛔ Files ignored due to path filters: 1
-
types.d.ts is excluded by !types.d.ts
📒 Files selected for processing: 58
-
.changeset/400-precise-public-types.md
lib/asset/AssetBytesGenerator.js
lib/asset/AssetBytesParser.js
lib/asset/AssetGenerator.js
lib/asset/AssetModule.js
lib/asset/AssetModulesPlugin.js
lib/asset/AssetParser.js
lib/asset/AssetSourceGenerator.js
lib/asset/AssetSourceParser.js
lib/asset/WebManifestGenerator.js
lib/context/ContextModule.js
lib/css/CssGenerator.js
lib/css/CssModule.js
lib/css/CssParser.js
lib/define/DefinePlugin.js
lib/dependencies/amd/AMDDefineDependencyParserPlugin.js
lib/dependencies/commonjs/CommonJsExportsParserPlugin.js
lib/dependencies/commonjs/CommonJsPlugin.js
lib/dependencies/context/ImportMetaGlobDependencyParserPlugin.js
lib/dependencies/esm/ESMDetectionParserPlugin.js
lib/dependencies/esm/ESMExports.js
lib/dependencies/esm/ESMImportDependencyParserPlugin.js
lib/dependencies/esm/ESMModulesPlugin.js
lib/dependencies/helpers/DynamicExports.js
lib/dependencies/import-meta/ImportMetaPlugin.js
lib/dependencies/import/ImportParserPlugin.js
lib/externals/ExternalModule.js
lib/hmr/HotModuleReplacementPlugin.js
lib/html/HtmlGenerator.js
lib/html/HtmlModule.js
lib/html/HtmlModulesPlugin.js
lib/html/HtmlParser.js
lib/index.js
lib/javascript/APIPlugin.js
lib/javascript/JavascriptGenerator.js
lib/javascript/JavascriptMetaInfoPlugin.js
lib/javascript/JavascriptModule.js
lib/javascript/JavascriptParser.js
lib/javascript/UseStrictPlugin.js
lib/json/JsonGenerator.js
lib/json/JsonModule.js
lib/json/JsonParser.js
lib/module/Generator.js
lib/module/NormalModuleFactory.js
lib/module/Parser.js
lib/optimize/SideEffectsFlagPlugin.js
lib/performance/EvalUsagePlugin.js
lib/performance/PureAnnotationsPlugin.js
lib/performance/TopLevelThisPlugin.js
lib/wasm-sync/SyncWasmModule.js
lib/wasm-sync/WebAssemblyGenerator.js
lib/wasm-sync/WebAssemblyJavascriptGenerator.js
lib/wasm-sync/WebAssemblyParser.js
lib/wasm/AsyncWasmModule.js
lib/wasm/AsyncWebAssemblyGenerator.js
lib/wasm/AsyncWebAssemblyJavascriptGenerator.js
lib/wasm/AsyncWebAssemblyParser.js
tooling/generate-types.js
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.
📝 Walkthrough
-
The change adds generic module types to parser and generator contracts, defines module-specific types for asset, CSS, HTML, JavaScript, JSON, and WebAssembly code, and updates build metadata access across plugins. The type generator also handles additional generic alias cases. Runtime behavior is reported unchanged.
Changes: Typed module contracts
| Layer / File(s) |
Summary |
Generic parser and generator contracts .changeset/400-precise-public-types.md, lib/module/Parser.js, lib/module/Generator.js, lib/module/NormalModuleFactory.js, lib/index.js, tooling/generate-types.js |
Parser state, parser, generator, and update-hash context types now accept module type parameters. Type generation handles additional generic alias cases. |
Asset and CSS module types lib/asset/*, lib/css/* |
Asset and CSS module typedefs distinguish modules with optional build metadata from built modules. Parsers and generators use the narrower types and remove separate build-info and build-meta assertions. |
HTML, JavaScript, and JSON module types lib/html/*, lib/javascript/*, lib/json/* |
HTML, JavaScript, and JSON parsers and generators use module-specific types for parser state, generator parameters, and build metadata access. |
WebAssembly module types lib/wasm-sync/*, lib/wasm/* |
Sync and async WebAssembly parsers and generators use module-specific types for parser state, generator parameters, and build metadata access. |
Build metadata access across plugins lib/context/ContextModule.js, lib/define/DefinePlugin.js, lib/dependencies/*, lib/externals/ExternalModule.js, lib/hmr/HotModuleReplacementPlugin.js, lib/javascript/APIPlugin.js, lib/javascript/JavascriptMetaInfoPlugin.js, lib/javascript/UseStrictPlugin.js, lib/optimize/SideEffectsFlagPlugin.js, lib/performance/* |
Plugin code removes redundant type assertions or uses a narrower build-info type. The described assignments and conditions remain unchanged. |
Possibly related PRs
- webpack/webpack#21800: Removes placeholder parser type aliases; this PR extends the related parser typing contracts.
Suggested reviewers: hai-x
Priority: ⬇️ Low
Change: Refactor
Merge Risk: ⚪ Minimal · up to 73ddc
-
No actionable merge-blocking issue is established; the generated public types retain the intended module parameters and defaults.
Pre-merge checks: 3 · 1
-
Failed checks: 1 inconclusive
| Check name |
Status |
Explanation |
Resolution |
| Title check |
 |
The title uses valid Conventional Commit syntax, includes the allowed type refactor, and accurately describes the module-specific parser and generator typing changes. The branch prefix is not provid… |
Provide the branch name or confirm that its prefix is refactor. |
Passed checks: 3 passed
-
| Check name |
Status |
Explanation |
| Description Check |
 |
Check skipped - CodeRabbit’s high-level summary is enabled. |
| Linked Issues check |
 |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
 |
Check skipped because no linked issues were found for this pull request. |
Full details: Title check
-
Explanation
The title uses valid Conventional Commit syntax, includes the allowed type refactor, and accurately describes the module-specific parser and generator typing changes. The branch prefix is not provided, so the type-to-branch-prefix match cannot be verified.
Resolution
Provide the branch name or confirm that its prefix is refactor.
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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
-
Comment @coderabbitai help to get the list of available commands.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Generated code size
Comparing base (8a5c37e) to head (73ddc1b). Merging this pull request will not change the code webpack generates.
| What moved |
Tests |
Assets |
Gzip |
Raw |
Test edit |
| Changed, test untouched |
0 |
0 |
— |
— |
— |
| Changed, test edited |
0 |
0 |
— |
— |
— |
| New |
0 |
0 |
— |
— |
— |
| Deleted |
0 |
0 |
— |
— |
— |
| Unchanged |
— |
8971 |
— |
— |
— |
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 — a new asset was created, not grown, so it reads gray (⚪ added) — and 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.
No asset changed size.
No runtime gained or lost a runtime module.
Built test/configCases with the defaults a user gets: 2251 test(s), 8971 asset(s), 101 emitted nothing.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
❌ Patch coverage is 98.98990% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 96.47%. Comparing base (8a5c37e) to head (73ddc1b).
Additional details and impacted files
@@ Coverage Diff @@
## main #22752 +/- ##
=======================================
Coverage 96.47% 96.47%
=======================================
Files 778 778
Lines 137268 137261 -7
Branches 46537 46529 -8
=======================================
- Hits 132427 132424 -3
+ Misses 4841 4837 -4
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.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Merging this PR will degrade performance by 30.05%
⚠️ 108 benchmarks spent significant time in system calls
System calls cannot be consistently instrumented, so they are not included in the measure, which understates the real cost. Please switch to the Walltime instrument to accurately measure system calls.
Measurement and system calls
benchmark "cache-filesystem-cold", scenario '{"name":"mode-development","mode":"development"}'
benchmark "import-meta-glob", scenario '{"name":"mode-development","mode":"development"}'
benchmark "many-chunks-esm", scenario '{"name":"mode-development-rebuild","mode":"development","watch":true}'
benchmark "devtool-eval-source-map", scenario '{"name":"mode-development-rebuild","mode":"development","watch":true}'
benchmark "cache-filesystem", scenario '{"name":"mode-production","mode":"production"}'
benchmark "html-many-chunks", scenario '{"name":"mode-development-rebuild","mode":"development","watch":true}'
benchmark "no-concatenation", scenario '{"name":"mode-development-rebuild","mode":"development","watch":true}'
benchmark "import-meta-glob", scenario '{"name":"mode-development-rebuild","mode":"development","watch":true}'
benchmark "no-concatenation", scenario '{"name":"mode-development","mode":"development"}'
benchmark "resolve-unsafe-cache", scenario '{"name":"mode-development-rebuild","mode":"development","watch":true}'
- …and 98 more
ℹ️ 29 benchmarks have no flame graph
The flamegraph could not be generated because too much time was spent in runtime internals, making the visualization not useful for performance analysis.
benchmark "common-libs", scenario '{"name":"mode-production","mode":"production"}'
benchmark "context-esm", scenario '{"name":"mode-production","mode":"production"}'
benchmark "future-defaults", scenario '{"name":"mode-production","mode":"production"}'
unit benchmark "scope-analyzer-unit", analyze 'lodash.js'
benchmark "concatenate-modules", scenario '{"name":"mode-production","mode":"production"}'
unit benchmark "scope-analyzer-unit", analyze 'three.module.js'
benchmark "react", scenario '{"name":"mode-development","mode":"development"}'
benchmark "three-long", scenario '{"name":"mode-production","mode":"production"}'
benchmark "asset-modules-source", scenario '{"name":"mode-production","mode":"production"}'
benchmark "wasm-modules-async", scenario '{"name":"mode-production","mode":"production"}'
- …and 19 more
⚠️ 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
⚡ 2 improved benchmarks
❌ 1 regressed benchmark
✅ 403 untouched benchmarks
⏩ 6 skipped benchmarks1
Performance Changes
Tip Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.
Comparing refactor/generic-build-info (73ddc1b) with main (945531c)2
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
1 more reviewer
Reviewers whose approvals may not affect merge requirements
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
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: tooling
Repo tooling, codegen, CLI entry (tooling/, bin/)
area: types
types.d.ts, JSDoc annotations, hand-maintained declarations
area: wasm
WebAssembly modules (lib/wasm-*)
area: watch
Watching, HMR, lazy compilation (lib/hmr, hot/)
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.
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.
|