Skip to content

refactor(types): type parsers and generators by their language's module - #22752

Merged
alexander-akait merged 2 commits into
mainfrom
refactor/generic-build-info
Oct 18, 2026
Merged

alexander-akait merged 2 commits into
mainfrom
refactor/generic-build-info

Conversation

@alexander-akait

@alexander-akait alexander-akait commented Oct 18, 2026 •

Copy link
Copy Markdown
Member

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.

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.
@changeset-bot

changeset-bot Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 73ddc1b

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 changesets to release 1 package
Name Type
webpack Patch

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

@github-actions 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
@github-actions

github-actions Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

This PR is packaged and the instant preview is available (9f25e90).

Install it locally:

  • npm
npm i -D webpack@https://pkg.pr.new/webpack@9f25e90
  • yarn
yarn add -D webpack@https://pkg.pr.new/webpack@9f25e90
  • pnpm
pnpm add -D webpack@https://pkg.pr.new/webpack@9f25e90

@github-actions

github-actions Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Types Coverage

Coverage after merging refactor/generic-build-info into main will be
99.24%
Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
bin
   webpack.js98.86%100%100%98.86%113
declarations
   WebpackOptions.ts99.94%100%100%99.94%4238
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/ssr
   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
   Chunk.js100%100%100%100%
   Compilation.js98.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.js98.81%100%100%98.81%1116, 1153, 1156, 1336–1337, 1345, 848, 934, 975
   Dependency.js100%100%100%100%
   DependencyTemplate.js100%100%100%100%
   EntryPlugin.js100%100%100%100%
   Entrypoint.js100%100%100%100%
   ExternalsPlugin.js100%100%100%100%
   FileSystemInfo.js100%100%100%100%
   InitFragment.js100%100%100%100%
   LibraryTemplatePlugin.js100%100%100%100%
   ModuleFilenameHelpers.js100%100%100%100%
   ModuleNotFoundError.js100%100%100%100%
   MultiCompiler.js98.91%100%100%98.91%489, 561, 748, 813
   NormalModule.js100%100%100%100%
   NullFactory.js100%100%100%100%
   ProgressPlugin.js100%100%100%100%
   RawModule.js100%100%100%100%
   RequestShortener.js100%100%100%100%
   SingleEntryPlugin.js100%100%100%100%
   WebpackError.js100%100%100%100%
   index.js100%100%100%100%
   webpack.js98.59%100%100%98.59%306, 308
lib/asset
   AssetBytesGenerator.js100%100%100%100%
   AssetBytesParser.js91.67%100%100%91.67%27
   AssetGenerator.js100%100%100%100%
   AssetModule.js100%100%100%100%
   AssetModulesPlugin.js98.45%100%100%98.45%334, 360, 363, 493, 58
   AssetParser.js96.15%100%100%96.15%47
   AssetSourceGenerator.js100%100%100%100%
   AssetSourceParser.js91.67%100%100%91.67%27
   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.js98.25%100%100%98.25%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.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.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%
   cli.js98.89%100%100%98.89%114, 550, 582, 632
   defaults.js99.59%100%100%99.59%1633–1635, 1643, 288, 548
   defineConfig.js100%100%100%100%
   getClaimedAssetTypes.js100%100%100%100%
   normalization.js99.14%100%100%99.14%285–286, 356, 371
   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.70%100%100%95.70%230, 257, 276, 280–281, 289, 466, 487, 492, 534, 543, 545, 549, 552, 558–559
   ContextReplacementPlugin.js100%100%100%100%
lib/css
   CssGenerator.js99.29%100%100%99.29%1094, 129, 305, 847
   CssInjectStyleRuntimeModule.js100%100%100%100%
   CssLoadingRuntimeModule.js100%100%100%100%
   CssModule.js100%100%100%100%
   CssModulesPlugin.js98.72%100%100%98.72%217, 418, 432, 445, 458, 481, 494, 507, 520
   CssParser.js99.76%100%100%99.76%1090, 2425, 3072, 3075, 3081, 3514, 943
   CssServerStylesRuntimeModule.js100%100%100%100%
   conventions.js98.65%100%100%98.65%93
   cssMinify.js100%100%100%100%
   data.js99.84%100%100%99.84%229, 5601
   syntax-parser.js99.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.js99.33%100%100%99.33%2603–2604, 2606–2607, 2609–2610, 2615, 2885–2888, 2981, 353, 3666, 4091, 4227, 4927, 5238, 6026, 727
   syntax.js100%100%100%100%
   topologicalSort.js100%100%100%100%
lib/debug
   ProfilingPlugin.js97.35%100%100%97.35%582, 589, 598, 602, 611, 616, 622, 627
lib/define
   DefinePlugin.js99.42%100%100%99.42%1488, 936, 938, 943, 967
   DotenvPlugin.js97.58%100%100%97.58%276, 391, 439, 452–453
   EnvironmentPlugin.js100%100%100%100%
lib/deno
   DenoTargetPlugin.js100%100%100%100%
lib/dependencies
   ConstDependency.js100%100%100%100%
   ContextElementDependency.js100%100%100%100%
   NullDependency.js100%100%100%100%
lib/dependencies/amd
   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%65
   LocalModule.js100%100%100%100%
   LocalModuleDependency.js100%100%100%100%
   LocalModulesHelpers.js100%100%100%100%
   RequireJsStuffPlugin.js100%100%100%100%
   UnsupportedDependency.js100%100%100%100%
lib/dependencies/commonjs
   

@coderabbitai

coderabbitai Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

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: Passed 3 · Inconclusive 1

Failed Failed checks: 1 inconclusive

Check name Status Explanation Resolution
Title check Inconclusive 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 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 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.

Comment thread lib/context/ContextModule.js Fixed
@github-actions

github-actions Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

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.

@codecov

codecov Bot commented Oct 18, 2026

Copy link
Copy Markdown

Codecov Report

❌ 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).

Files with missing lines Patch % Lines
lib/wasm-sync/WebAssemblyParser.js 75.00% 1 Missing ⚠️
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     
Flag Coverage Δ
css-parsing 24.76% <11.11%> (+<0.01%) ⬆️
html5lib 26.55% <7.54%> (-0.01%) ⬇️
integration 81.27% <98.98%> (+<0.01%) ⬆️
minify-corpora 90.86% <ø> (ø)
syntax-equivalence 76.57% <ø> (ø)
test262 55.78% <47.27%> (-0.01%) ⬇️
test262-parser 79.42% <ø> (ø)
unit 76.55% <43.05%> (-0.01%) ⬇️
xmlconf 27.52% <ø> (ø)

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.

@codspeed

codspeed Bot commented Oct 18, 2026

Copy link
Copy Markdown

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

ℹ️ 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.

⚠️ 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

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
❌ Memory unit benchmark "js-parser-unit", tokenize typescript 39.4 KB 169.5 KB -76.73%
⚡ Memory unit benchmark "css-printer-tailwind-unit", walk (deep nesting) 3.6 KB 2.9 KB +21.81%
⚡ Memory unit benchmark "scope-analyzer-unit", analyze 'lodash.js' 1.5 KB 1.2 KB +20.78%

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

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. ↩

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

@alexander-akait
alexander-akait merged commit 9f25e90 into main Oct 18, 2026
69 checks passed
@alexander-akait
alexander-akait deleted the refactor/generic-build-info branch October 18, 2026 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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/)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants