Skip to content

build: precompile schemas with schema-utils - #22774

Merged
alexander-akait merged 4 commits into
mainfrom
build/precompile-schemas-with-schema-utils
Oct 19, 2026
Merged

alexander-akait merged 4 commits into
mainfrom
build/precompile-schemas-with-schema-utils

Conversation

@alexander-akait

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

Copy link
Copy Markdown
Member

Summary

tooling/precompile-schemas.js had its own ajv setup: custom keywords, error-object stripping and a terser pass. Now it calls precompile(schema, { minify: true }) from schema-utils (webpack/schema-utils#235), which does the same job. webpack's checks are now built the same way as every plugin's and loader's, and the script goes from 336 lines to 83.

  • Minifier: minify uses webpack's own minifier, loaded as webpack, so the lint job now runs yarn link / yarn link webpack like the test jobs (and like _SETUP.md asks of contributors). A change to the minifier's output can therefore restale the checks, which lint:special reports.
  • Dependencies:
  • Behavior: the old and new WebpackOptions checks agree on all 4,021 configs in test/{config,watch,hot,stats}Cases. Two small differences:
    • minLength is now counted like the full validation, by code points;
    • like the full validation, a Falsy array item that is undefined (in plugins, rules and similar) is set to null. webpack skips both.
WebpackOptions.check.js Size gzip Load (median of 41) First call
Before 423,503 B 46,869 B 12.9 ms 3.2 ms
After 423,253 B 45,806 B 13.3 ms 3.2 ms

All 43 checks together go from 613,573 B to 619,331 B.

What kind of change does this PR introduce?

build

Did you add tests for your changes?

No new tests. The generated checks are covered by the existing validation tests, and lint:special fails when one is stale. In a clean checkout, yarn lint and test/cases/large/big-assets pass. In test:unit and test:basic, the only local failures also fail on unmodified main in the same environment.

Does this PR introduce a breaking change?

No.

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 change, ran the comparisons and measurements above, and drafted this description; I reviewed the result.


Generated by Claude Code

Summary by CodeRabbit

  • Maintenance
    • Updated the schema validation tooling and refreshed its generated checks.
    • Improved compatibility with the newer schema utility version; schema validation errors continue to identify the relevant schema.
    • Updated the project’s dependency metadata as part of the patch release.

tooling/precompile-schemas.js now calls schema-utils' precompile with
minify instead of carrying its own ajv keywords, error stripping and
terser pass, so webpack's checks are built the same way as every
plugin's and loader's. The checks are minified with webpack's own
minifier, so the lint job links webpack like the test jobs do.

Drops the ajv and commondir devDependencies.
@changeset-bot

changeset-bot Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 4cab217

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
webpack Patch

Not sure what this means? Click here to learn what changesets are.

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

@socket-security

socket-security Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednpm/​schema-utils@​4.5.0 ⏵ 4.8.19910010095 +3100

View full report

@coderabbitai

coderabbitai Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Important

Review skipped

Review was skipped due to path filters

⛔ Files ignored due to path filters: 32
  • schemas/WebpackOptions.check.js is excluded by !schemas/**/*.check.js
  • schemas/plugins/BannerPlugin.check.js is excluded by !schemas/**/*.check.js
  • schemas/plugins/HtmlGeneratorOptions.check.js is excluded by !schemas/**/*.check.js
  • schemas/plugins/HtmlParserOptions.check.js is excluded by !schemas/**/*.check.js
  • schemas/plugins/LoaderOptionsPlugin.check.js is excluded by !schemas/**/*.check.js
  • schemas/plugins/ManifestPlugin.check.js is excluded by !schemas/**/*.check.js
  • schemas/plugins/ProgressPlugin.check.js is excluded by !schemas/**/*.check.js
  • schemas/plugins/SSRManifestPlugin.check.js is excluded by !schemas/**/*.check.js
  • schemas/plugins/SourceMapDevToolPlugin.check.js is excluded by !schemas/**/*.check.js
  • schemas/plugins/WatchIgnorePlugin.check.js is excluded by !schemas/**/*.check.js
  • schemas/plugins/asset/AssetGeneratorOptions.check.js is excluded by !schemas/**/*.check.js
  • schemas/plugins/asset/AssetInlineGeneratorOptions.check.js is excluded by !schemas/**/*.check.js
  • schemas/plugins/asset/AssetResourceGeneratorOptions.check.js is excluded by !schemas/**/*.check.js
  • schemas/plugins/container/ContainerPlugin.check.js is excluded by !schemas/**/*.check.js
  • schemas/plugins/container/ContainerReferencePlugin.check.js is excluded by !schemas/**/*.check.js
  • schemas/plugins/container/ExternalsType.check.js is excluded by !schemas/**/*.check.js
  • schemas/plugins/container/ModuleFederationPlugin.check.js is excluded by !schemas/**/*.check.js
  • schemas/plugins/css/CssAutoOrModuleParserOptions.check.js is excluded by !schemas/**/*.check.js
  • schemas/plugins/css/CssModuleGeneratorOptions.check.js is excluded by !schemas/**/*.check.js
  • schemas/plugins/css/CssModuleParserOptions.check.js is excluded by !schemas/**/*.check.js
  • schemas/plugins/css/CssParserOptions.check.js is excluded by !schemas/**/*.check.js
  • schemas/plugins/debug/ProfilingPlugin.check.js is excluded by !schemas/**/*.check.js
  • schemas/plugins/define/DotenvPluginOptions.check.js is excluded by !schemas/**/*.check.js
  • schemas/plugins/dll/DllPlugin.check.js is excluded by !schemas/**/*.check.js
  • schemas/plugins/dll/DllReferencePlugin.check.js is excluded by !schemas/**/*.check.js
  • schemas/plugins/ids/HashedModuleIdsPlugin.check.js is excluded by !schemas/**/*.check.js
  • schemas/plugins/output/CleanOptions.check.js is excluded by !schemas/**/*.check.js
  • schemas/plugins/schemes/HttpUriPlugin.check.js is excluded by !schemas/**/*.check.js
  • schemas/plugins/schemes/VirtualUrlPlugin.check.js is excluded by !schemas/**/*.check.js
  • schemas/plugins/sharing/ConsumeSharedPlugin.check.js is excluded by !schemas/**/*.check.js
  • schemas/plugins/sharing/ProvideSharedPlugin.check.js is excluded by !schemas/**/*.check.js
  • schemas/plugins/sharing/SharePlugin.check.js is excluded by !schemas/**/*.check.js

CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.

⚙️ Run configuration
  • Configuration used: Repository: webpack/webpack/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c3c6912c-df11-45e6-a70d-e727f8f4d2e8

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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: 4e7ab7f1-591f-4c60-85cf-f64ad641a51c
📥 Commits

Reviewing files that changed from the base of the PR and between 34e57b0 and 679c695.

⛔ Files ignored due to path filters: 1
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock, !yarn.lock
📒 Files selected for processing: 2
  • .changeset/130-schema-utils-4-8-1.md
  • package.json
🚧 Files skipped from review as they are similar to previous changes: 1
  • package.json

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

📝 Walkthrough

The schema-check script now uses schema-utils precompilation with file-URL schema identifiers, and the dependency range is updated to 4.8.1. The lint workflow adds Yarn link setup. The commondir spelling entry and TypeScript declaration are removed.

Changes: Schema Check Generation Update

Layer / File(s) Summary
Schema precompilation
package.json, tooling/precompile-schemas.js, .changeset/130-schema-utils-4-8-1.md
The script reads schema files, assigns file-URL identifiers, and precompiles them with minification before updating generated checks. The schema-utils range changes to 4.8.1, the Ajv devDependency is removed, and a Changesets entry records a webpack patch release and the schema-utils update.

Lint Workflow Setup

Layer / File(s) Summary
Link webpack before lint
.github/workflows/test.yml
The lint job attempts a best-effort Yarn link, then links webpack before running lint.

commondir Declaration Removal

Layer / File(s) Summary
Remove commondir declaration
cspell.json, declarations.d.ts
The spelling list no longer includes commondir, and its TypeScript module declaration and overloads are removed.

Suggested labels: area: tooling, area: config, area: types

Priority: ➖ Normal

Change: Refactor

Merge Risk: ⚪ Minimal · up to 679c6

The schema-check update preserves reachable validation behavior, and the lint workflow links the local webpack package. No actionable merge risk remains.

Pre-merge checks: Passed 3 · Inconclusive 1

Failed Failed checks: 1 inconclusive

Check name Status Explanation Resolution
Title check Inconclusive The title uses the required Conventional Commit form and accurately describes the schema precompilation change. The branch prefix is not provided, so the required prefix match cannot be verified. Provide the branch name or branch prefix. Confirm that it starts with build.
Passed Passed checks: 3 passed
Check name Status Explanation
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.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
✨ Finishing Touches: 💡 1
🛠️ Fix failing CI checks: 💡
  • Commit to this branch
  • Create a new PR
  • 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.

@coderabbitai coderabbitai Bot added area: config Options, defaults, validation (lib/config, schemas/) area: tooling Repo tooling, codegen, CLI entry (tooling/, bin/) area: types types.d.ts, JSDoc annotations, hand-maintained declarations 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 (b77c2d8).

Install it locally:

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

@github-actions

github-actions Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Types Coverage

Coverage after merging build/precompile-schemas-with-schema-utils into main will be
99.28%
Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
bin
   webpack.js98.86%100%100%98.86%113
declarations
   WebpackOptions.ts99.94%100%100%99.94%4240
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%1783, 2096, 2103, 2111, 2133, 2136, 3120, 3671, 3714, 4303, 4307, 4434, 4455, 4580, 4617, 4624, 4677–4678, 4682, 4687, 4703–4704, 4718–4719, 4724–4725, 5253, 5279, 6109, 6126, 6144, 6160, 6175, 6200, 6203, 6571, 6574–6575, 6580, 6595, 6678, 6702, 855–856
   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.js100%100%100%100%
   cssMinify.js100%100%100%100%
   data.js99.84%100%100%99.84%229, 5601
   syntax-parser.js99.69%100%100%99.69%10798–10799, 11351–11352, 11389, 11599, 11648, 13966, 14027–14030, 14135–14136, 14234–14235, 14983, 15280, 15282, 15802, 16168, 18311, 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.js100%100%100%100%
lib/define
   DefinePlugin.js99.42%100%100%99.42%1488, 936, 938, 943, 967
   DotenvPlugin.js97.62%100%100%97.62%276, 395, 443, 456–457
   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
   CommonJsDependencyHelpers.js98.63%100%100%98.63%43
   CommonJsExportRequireDependency.js99.21%100%100%99.21%414, 416, 418
   

@github-actions

github-actions Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Generated code size

Comparing base (f9705a6) to head (4cab217). 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 — 9030 — — —

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: 2260 test(s), 9030 asset(s), 101 emitted nothing.

@codecov

codecov Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.50%. Comparing base (3821900) to head (4cab217).
⚠️ Report is 11 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #22774      +/-   ##
==========================================
+ Coverage   96.49%   96.50%   +0.01%     
==========================================
  Files         778      778              
  Lines      137417   137804     +387     
  Branches    46599    46827     +228     
==========================================
+ Hits       132602   132991     +389     
+ Misses       4815     4813       -2     
Flag Coverage Δ
css-parsing 24.77% <ø> (ø)
html5lib 26.56% <ø> (ø)
integration 81.28% <ø> (+<0.01%) ⬆️
minify-corpora 90.94% <ø> (+0.08%) ⬆️
syntax-equivalence 78.79% <ø> (ø)
test262 55.86% <ø> (+0.08%) ⬆️
test262-parser 79.42% <ø> (ø)
unit 76.66% <ø> (+0.05%) ⬆️
xmlconf 27.51% <ø> (ø)

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.

The schema-utils imports moved only with a stale local node_modules; a
clean install generates the same types.d.ts as main.

Copy link
Copy Markdown
Member Author

basic fails in test/cases/large/big-assets, and the cause is in schema-utils 4.8.0, not in this diff. The case bundles schema-utils, and 4.8.0's precompile.js requires ajv's helpers with a template-literal request. webpack turns that into a context over ajv/dist/runtime and fails to parse its .d.ts and .map files. It also adds an expression-request warning.

The fix is webpack/schema-utils#238. Bundling schema-utils there reports no errors or warnings. Once it's released, this PR will bump to ^4.8.1.


Generated by Claude Code

4.8.1 bundles without errors or warnings, which test/cases/large/big-assets
needs now that the tooling uses schema-utils precompile.
#22754 changed what webpack's minifier writes, which the checks are now
minified with.
@codspeed

codspeed Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Merging this PR will degrade performance by 81.18%

⚠️ 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 regressed benchmark
✅ 411 untouched benchmarks
⏩ 212 skipped benchmarks1

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
❌ Memory unit benchmark "html-printer-document-unit", beautify (wide table) 34.4 KB 183 KB -81.18%

Tip

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


Comparing build/precompile-schemas-with-schema-utils (4cab217) with main (f9705a6)

Open in CodSpeed

Footnotes

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

@alexander-akait
alexander-akait merged commit b77c2d8 into main Oct 19, 2026
120 checks passed
@alexander-akait
alexander-akait deleted the build/precompile-schemas-with-schema-utils branch October 19, 2026 10:05
markharding pushed a commit to futo-org/Harbor that referenced this pull request Oct 27, 2026
This PR contains the following updates:

| Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [webpack](https://github.com/webpack/webpack) | [`5.112.0` → `5.112.2`](https://renovatebot.com/diffs/npm/webpack/5.112.0/5.112.2) | ![age](https://developer.mend.io/api/mc/badges/age/npm/webpack/5.112.2?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/webpack/5.112.0/5.112.2?slim=true) |

---

> ⚠️ **Warning**
>
> Some dependencies could not be looked up. Check the [Dependency Dashboard](issues/99) for more information.

---

### Release Notes

<details>
<summary>webpack/webpack (webpack)</summary>

### [`v5.112.2`](https://github.com/webpack/webpack/blob/HEAD/CHANGELOG.md#51122)

[Compare Source](webpack/webpack@v5.112.1...v5.112.2)

##### Patch Changes

- Reduce repeated scans when concatenating imported modules. (by [@&#8203;xiaoxiaojx](https://github.com/xiaoxiaojx) in [#&#8203;22865](webpack/webpack#22865))

- Avoid allocating CSS module sets for single-group chunks. (by [@&#8203;xiaoxiaojx](https://github.com/xiaoxiaojx) in [#&#8203;22866](webpack/webpack#22866))

- Return the value of every module type loaded with `importModule()`. (by [@&#8203;alexander-akait](https://github.com/alexander-akait) in [#&#8203;22869](webpack/webpack#22869))

### [`v5.112.1`](https://github.com/webpack/webpack/blob/HEAD/CHANGELOG.md#51121)

[Compare Source](webpack/webpack@v5.112.0...v5.112.1)

##### Patch Changes

- Rebuild a lazy barrel in watch when what it defers changes, and keep the imports and re-exports it still runs. (by [@&#8203;aryanraj45](https://github.com/aryanraj45) in [#&#8203;22699](webpack/webpack#22699))

- Rebuild under `cacheUnaffected` a module whose re-export target goes or returns. (by [@&#8203;aryanraj45](https://github.com/aryanraj45) in [#&#8203;22749](webpack/webpack#22749))

- Fix "Self-reference dependency has unused export name" for CommonJS namespace re-exports. (by [@&#8203;alexander-akait](https://github.com/alexander-akait) in [#&#8203;22791](webpack/webpack#22791))

- Fix `exportType: "style"` CSS modules throwing outside the runtime chunk. (by [@&#8203;lazerg](https://github.com/lazerg) in [#&#8203;22833](webpack/webpack#22833))

- Fix crash when a CSS module with `exportType: "style"` imports an ignored stylesheet. (by [@&#8203;codeXsidd](https://github.com/codeXsidd) in [#&#8203;22846](webpack/webpack#22846))

- Keep empty process environment variables that `.env` files don't define in `DotenvPlugin`. (by [@&#8203;alexander-akait](https://github.com/alexander-akait) in [#&#8203;22794](webpack/webpack#22794))

- Rehash an ESM entry chunk when a chunk it imports by file name changes. (by [@&#8203;alexander-akait](https://github.com/alexander-akait) in [#&#8203;22804](webpack/webpack#22804))

- Handle a NUL inside an HTML CDATA section the way the parsing spec does. (by [@&#8203;dependabot](https://github.com/apps/dependabot) in [#&#8203;22811](webpack/webpack#22811))

- Keep module exports live across chunks, runtimes, HMR and eval, sparing globals. (by [@&#8203;alexander-akait](https://github.com/alexander-akait) in [#&#8203;22733](webpack/webpack#22733))

- Await asynchronous modules that `ProvidePlugin` injects into ES modules. (by [@&#8203;alexander-akait](https://github.com/alexander-akait) in [#&#8203;22728](webpack/webpack#22728))

- Keep a resolve that ends after the compiler closed from throwing. (by [@&#8203;alexander-akait](https://github.com/alexander-akait) in [#&#8203;22795](webpack/webpack#22795))

- Preserve string names passed to SharedWorker constructors. (by [@&#8203;bjohansebas](https://github.com/bjohansebas) in [#&#8203;22770](webpack/webpack#22770))

- Preserve string contents when extracting source map comments. (by [@&#8203;bjohansebas](https://github.com/bjohansebas) in [#&#8203;22768](webpack/webpack#22768))

- Scope strict-mode, async and generator block function declarations to their block. (by [@&#8203;alexander-akait](https://github.com/alexander-akait) in [#&#8203;22800](webpack/webpack#22800))

- Preserve raw dotenv values when reusing cached environment files. (by [@&#8203;Eshiv-Pandey](https://github.com/Eshiv-Pandey) in [#&#8203;22787](webpack/webpack#22787))

- Preserve assigned or patched built-ins, conversions and pattern targets. (by [@&#8203;aryanraj45](https://github.com/aryanraj45) in [#&#8203;22761](webpack/webpack#22761))

- Keep globals a `globalThis` write replaces, and `slice` on a patched array. (by [@&#8203;alexander-akait](https://github.com/alexander-akait) in [#&#8203;22862](webpack/webpack#22862))

- Skip HTML script tags for shared chunks that emit no JavaScript. (by [@&#8203;bjohansebas](https://github.com/bjohansebas) in [#&#8203;22779](webpack/webpack#22779))

- Keep the digits Firefox lays out a minified CSS percentage with. (by [@&#8203;alexander-akait](https://github.com/alexander-akait) in [#&#8203;22718](webpack/webpack#22718))

- Reject a second `srcset` descriptor after a `0x` density descriptor. (by [@&#8203;alexander-akait](https://github.com/alexander-akait) in [#&#8203;22741](webpack/webpack#22741))

- Minify JavaScript faster, folding string methods on constants and `x -= 1`. (by [@&#8203;alexander-akait](https://github.com/alexander-akait) in [#&#8203;22823](webpack/webpack#22823))

- Shorten minified JavaScript, and keep it running like its source. (by [@&#8203;alexander-akait](https://github.com/alexander-akait) in [#&#8203;22717](webpack/webpack#22717))

- Drop more unused functions, arguments, calls, global reads and variable copies when minifying JavaScript. (by [@&#8203;alexander-akait](https://github.com/alexander-akait) in [#&#8203;22789](webpack/webpack#22789))

- Minify JavaScript smaller where swc does, and fold a function's `length` right. (by [@&#8203;alexander-akait](https://github.com/alexander-akait) in [#&#8203;22826](webpack/webpack#22826))

- Reduce JavaScript output size where oxc or swc produce smaller output. (by [@&#8203;alexander-akait](https://github.com/alexander-akait) in [#&#8203;22829](webpack/webpack#22829))

- Update watchpack to 2.6.3 and rebuild on a `node_modules` created mid-build. (by [@&#8203;alexander-akait](https://github.com/alexander-akait) in [#&#8203;22743](webpack/webpack#22743))

- Support `concatenateModules` with `cacheUnaffected`. (by [@&#8203;alexander-akait](https://github.com/alexander-akait) in [#&#8203;22746](webpack/webpack#22746))

- Update schema-utils to 4.8.1. (by [@&#8203;alexander-akait](https://github.com/alexander-akait) in [#&#8203;22774](webpack/webpack#22774))

- Keep CSS fallbacks, vendor overrides, `oklch()` hues and HTML elements. (by [@&#8203;alexander-akait](https://github.com/alexander-akait) in [#&#8203;22753](webpack/webpack#22753))

- Validate `CleanPlugin` and `DotenvPlugin` options with a precompiled check, so valid options no longer compile their schema at startup. (by [@&#8203;alexander-akait](https://github.com/alexander-akait) in [#&#8203;22758](webpack/webpack#22758))

- Speed up startup and CSS minification, sharing the compile cache with workers. (by [@&#8203;xiaoxiaojx](https://github.com/xiaoxiaojx) in [#&#8203;22706](webpack/webpack#22706))

- Use precise, generic types for modules, parsers, generators, stats and loaders. (by [@&#8203;alexander-akait](https://github.com/alexander-akait) in [#&#8203;22731](webpack/webpack#22731))

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - "before 9am on tuesday"
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xNzUuMSIsInVwZGF0ZWRJblZlciI6IjQ0LjE3NS4xIiwidGFyZ2V0QnJhbmNoIjoiZGV2ZWxvcCIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiLCJyZW5vdmF0ZSJdfQ==-->

Reviewed-on: https://code.futo.org/harbor/harbor/pulls/2035
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: config Options, defaults, validation (lib/config, schemas/) area: tooling Repo tooling, codegen, CLI entry (tooling/, bin/) area: types types.d.ts, JSDoc annotations, hand-maintained declarations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant