GeezerVison is showing github.com — fix(provide): await asynchronous provided dependencies in ES modules by alexander-akait · Pull Request #22728 · webpack/webpack
Conversation
alexander-akait
commented
Oct 16, 2026
•
edited by coderabbitai
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Summary
ProvidePlugin reads an async module (top-level await, promise externals) before it settles, so the provided value is undefined and a rejection goes unhandled. A smaller alternative to #22661: a provided dependency now propagates async like an ESM import, but only from an ES module consumer, and its template adds the provided variable to the module's existing await. The async-module runtime is unchanged; CommonJS consumers keep today's behavior, the same as require() of an async module.
// ProvidePlugin({ providedModule: "./async.js", providedValue: ["./async.js", "value"] })
import { value } from "./async.js";
console.log([value, providedValue, providedModule.value]);
// Before: [42, undefined, undefined]
// After: [42, 42, 42]
import.defer of an async module that is compiled to a generator (es2016 target) returns undefined on main with a plain import too; that is a separate bug, so the test's es2016 build skips the deferred case.
What kind of change does this PR introduce?
fix
Did you add tests for your changes?
Yes: test/configCases/plugins/provide-plugin-async/ (exports, inlined exports, promise externals, rejection, reexports, import.defer, generator lowering, no arrow functions).
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 compared this with #22661, wrote the reduced fix, adapted its regression tests and ran the targeted tests and lint.
🤖 Generated with Claude Code
https://claude.ai/code/session_01RUhz6cUMMMxpbPo5vk8ZEe
Generated by Claude Code
Summary by CodeRabbit
- Bug Fixes
ProvidePlugin now waits for asynchronous modules used in ES modules before accessing their provided values.
- Async provided dependencies now work with re-exports, external promises, and inlined exports, with failures correctly propagated.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Oct 16, 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:
c20a64d3-223d-4310-ab69-2f9a29a26527
📥 Commits
-
Reviewing files that changed from the base of the PR and between a4b0878 and aab1899.
⛔ Files ignored due to path filters: 1
-
types.d.ts is excluded by !types.d.ts
📒 Files selected for processing: 21
-
.changeset/060-provide-plugin-async-dependencies.md
lib/async-modules/AsyncModuleHelpers.js
lib/async-modules/InferAsyncModulesPlugin.js
lib/graph/Dependency.js
lib/provide/ProvidedDependency.js
test/configCases/plugins/provide-plugin-async/async.js
test/configCases/plugins/provide-plugin-async/consumer.js
test/configCases/plugins/provide-plugin-async/defer.js
test/configCases/plugins/provide-plugin-async/external.js
test/configCases/plugins/provide-plugin-async/failure.js
test/configCases/plugins/provide-plugin-async/index.js
test/configCases/plugins/provide-plugin-async/inlined-consumer.js
test/configCases/plugins/provide-plugin-async/inlined.js
test/configCases/plugins/provide-plugin-async/mixed.js
test/configCases/plugins/provide-plugin-async/non-arrow.js
test/configCases/plugins/provide-plugin-async/reexport.js
test/configCases/plugins/provide-plugin-async/rejected.js
test/configCases/plugins/provide-plugin-async/state.js
test/configCases/plugins/provide-plugin-async/test.config.js
test/configCases/plugins/provide-plugin-async/warnings.js
test/configCases/plugins/provide-plugin-async/webpack.config.js
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.
📝 Walkthrough
-
Provided dependencies now participate in async-module propagation. ProvidedDependencyTemplate adds await handling when both the target and consuming module are async. Configuration tests cover async provided values, external promises, reexports, inlined exports, and rejection.
Changes: Async Provided Dependencies
| Layer / File(s) |
Summary |
Include provided dependencies in async propagation lib/graph/Dependency.js, lib/async-modules/AsyncModuleHelpers.js, lib/async-modules/InferAsyncModulesPlugin.js |
The dependency kind map and async-module traversal now recognize provided dependencies. Async propagation follows active provided dependencies from namespace-exporting origin modules. |
Await async provided targets lib/provide/ProvidedDependency.js |
When both the target and consuming module are async, ProvidedDependencyTemplate uses the dependency identifier as the target and adds an await fragment. It adds a later assignment when the selected export differs from the target. |
Exercise async ProvidePlugin cases test/configCases/plugins/provide-plugin-async/*, .changeset/060-provide-plugin-async-dependencies.md |
The tests cover async provided values, promise externals, reexports, inlined exports, rejection, and multiple target configurations. The changeset records a webpack patch. |
Suggested labels: area: types
Priority: ⬇️ Low
Change: Bug fix
Merge Risk: ⚪ Minimal · up to aab18
-
No merge-blocking issue was identified; normal validation can proceed.
Pre-merge checks: 3 · 1
-
Failed checks: 1 inconclusive
| Check name |
Status |
Explanation |
Resolution |
| Title check |
 |
The title follows the required Conventional Commit form and accurately describes the change. The fix type and provide scope are valid, but the branch prefix is not provided, so the required type-t… |
Provide the branch name or confirm that its prefix is fix. If confirmed, the title passes this check. |
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 follows the required Conventional Commit form and accurately describes the change. The fix type and provide scope are valid, but the branch prefix is not provided, so the required type-to-branch-prefix match cannot be verified.
Resolution
Provide the branch name or confirm that its prefix is fix. If confirmed, the title passes this check.
- 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.
Types CoverageCoverage after merging fix/provide-plugin-async-esm 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.67% | 100% | 100% | 98.67% | 1767, 2080, 2087, 2095, 2117, 2120, 23, 3099, 3636, 3679, 4268, 4272, 4399, 4420, 4545, 4582, 4589, 4642–4643, 4647, 4652, 4668–4669, 4683–4684, 4689–4690, 5214, 5240, 6070, 6087, 6105, 6121, 6136, 6161, 6164, 6532, 6535–6536, 6541, 6556, 6639, 6663, 843–844 | | 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 | 100% | 100% | 100% | 100% | | | AssetGenerator.js | 100% | 100% | 100% | 100% | | | AssetModule.js | 100% | 100% | 100% | 100% | | | AssetModulesPlugin.js | 98.45% | 100% | 100% | 98.45% | 335, 359, 362, 492, 59 | | AssetParser.js | 100% | 100% | 100% | 100% | | | AssetSourceGenerator.js | 100% | 100% | 100% | 100% | | | AssetSourceParser.js | 100% | 100% | 100% | 100% | | | 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 | 96.49% | 100% | 100% | 96.49% | 10, 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% | 1304, 1404, 1408, 1470, 1716, 1800, 1823, 1853, 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.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.88% | 100% | 100% | 98.88% | 114, 546, 578, 628 | | defaults.js | 99.38% | 100% | 100% | 99.38% | 1629–1631, 1639, 283, 286, 291, 295, 544 | | 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% | 1092, 134, 301, 849 | | 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% | 1094, 2431, 3078, 3081, 3087, 3520, 947 | | 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% | 10776–10777, 11315–11316, 11353, 11563, 11612, 13930, 13991–13994, 14099–14100, 14198–14199, 14918, 15215, 15217, 15737, 16103, 18246, 2616, 3321, 3323, 3328, 3347, 4096, 4102 | | 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 | 94.02% | 100% | 100% | 94.02% | 169, 417–419, 421, 425, 433, 437, 452, 580, 587, 596, 600, 609, 614, 620, 625, 92 | | lib/define | | DefinePlugin.js | 98.85% | 100% | 100% | 98.85% | 1493, 268–269, 285, 304, 378, 936, 938, 943, 967 | | DotenvPlugin.js | 97.58% | 100% | 100% | 97.58% | 276, 391, 439, 452–453 | | EnvironmentPlugin.js | 97.14% | 100% | 100% | 97.14% | 49 | | 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% | | | |
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
This PR is packaged and the instant preview is available (2f4b6be).
Install it locally:
npm i -D webpack@https://pkg.pr.new/webpack@2f4b6be
yarn add -D webpack@https://pkg.pr.new/webpack@2f4b6be
pnpm add -D webpack@https://pkg.pr.new/webpack@2f4b6be
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Generated code size
Comparing base (a4b0878) to head (aab1899). Merging this pull request adds 36 new asset(s).
| What moved |
Tests |
Assets |
Gzip |
Raw |
Test edit |
| Changed, test untouched |
0 |
0 |
— |
— |
— |
| Changed, test edited |
0 |
0 |
— |
— |
— |
| New |
1 |
36 |
⚪ added +21.00 KiB |
⚪ added +43.30 KiB |
— |
| Deleted |
0 |
0 |
— |
— |
— |
| Unchanged |
— |
8843 |
— |
— |
— |
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 that both runs emit changed size — everything below is new or deleted.
36 asset(s) this pull request adds, biggest 20 by raw size
|
Asset |
Raw |
Gzip (9) |
Brotli (11) |
Zstd (19) |
| ⚪ added |
plugins/provide-plugin-async 1/bundle1.js |
6.86 KiB |
2.91 KiB |
2.58 KiB |
2.87 KiB |
| ⚪ added |
plugins/provide-plugin-async 2/bundle2.mjs |
5.51 KiB |
2.24 KiB |
2.03 KiB |
2.19 KiB |
| ⚪ added |
plugins/provide-plugin-async 3/bundle3.mjs |
5.51 KiB |
2.24 KiB |
2.03 KiB |
2.19 KiB |
| ⚪ added |
plugins/provide-plugin-async 0/bundle0.js |
5.16 KiB |
2.10 KiB |
1.92 KiB |
2.08 KiB |
| ⚪ added |
plugins/provide-plugin-async 4/bundle4.js |
3.35 KiB |
1.53 KiB |
1.40 KiB |
1.52 KiB |
| ⚪ added |
plugins/provide-plugin-async 5/bundle5.js |
2.50 KiB |
1.15 KiB |
1.04 KiB |
1.15 KiB |
| ⚪ added |
plugins/provide-plugin-async 2/618.bundle2.mjs |
792 B |
412 B |
379 B |
417 B |
| ⚪ added |
plugins/provide-plugin-async 3/618.bundle3.mjs |
792 B |
412 B |
379 B |
417 B |
| ⚪ added |
plugins/provide-plugin-async 1/618.bundle1.js |
785 B |
418 B |
384 B |
420 B |
| ⚪ added |
plugins/provide-plugin-async 4/618.bundle4.js |
773 B |
411 B |
365 B |
407 B |
| ⚪ added |
plugins/provide-plugin-async 0/618.bundle0.js |
763 B |
402 B |
367 B |
404 B |
| ⚪ added |
plugins/provide-plugin-async 5/393.bundle5.js |
651 B |
369 B |
325 B |
369 B |
| ⚪ added |
plugins/provide-plugin-async 2/393.bundle2.mjs |
651 B |
365 B |
330 B |
367 B |
| ⚪ added |
plugins/provide-plugin-async 3/393.bundle3.mjs |
651 B |
365 B |
330 B |
367 B |
| ⚪ added |
plugins/provide-plugin-async 1/393.bundle1.js |
644 B |
374 B |
339 B |
373 B |
| ⚪ added |
plugins/provide-plugin-async 0/393.bundle0.js |
622 B |
358 B |
322 B |
358 B |
| ⚪ added |
plugins/provide-plugin-async 2/970.bundle2.mjs |
564 B |
332 B |
298 B |
334 B |
| ⚪ added |
plugins/provide-plugin-async 3/970.bundle3.mjs |
564 B |
332 B |
298 B |
334 B |
| ⚪ added |
plugins/provide-plugin-async 1/970.bundle1.js |
557 B |
340 B |
307 B |
338 B |
| ⚪ added |
plugins/provide-plugin-async 4/970.bundle4.js |
551 B |
330 B |
292 B |
332 B |
|
… 16 more, see the uploaded report |
|
|
|
|
No runtime that both runs build changed which runtime modules it carries.
6 runtime(s) this pull request adds or no longer builds
|
Runtime |
Modules |
| ➕ |
plugins/provide-plugin-async 1/main |
13 |
| ➕ |
plugins/provide-plugin-async 0/main |
10 |
| ➕ |
plugins/provide-plugin-async 2/main |
9 |
| ➕ |
plugins/provide-plugin-async 3/main |
9 |
| ➕ |
plugins/provide-plugin-async 4/main |
9 |
| ➕ |
plugins/provide-plugin-async 5/main |
8 |
Built test/configCases with the defaults a user gets: 2244 test(s), 8879 asset(s), 100 emitted nothing.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Merging this PR will degrade performance by 35.38%
⚠️ 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 "asset-modules-resource", scenario '{"name":"mode-development-rebuild","mode":"development","watch":true}'
benchmark "asset-modules-bytes", scenario '{"name":"mode-development-rebuild","mode":"development","watch":true}'
benchmark "many-chunks-commonjs", scenario '{"name":"mode-development-rebuild","mode":"development","watch":true}'
benchmark "concatenate-modules", scenario '{"name":"mode-development","mode":"development"}'
benchmark "react", scenario '{"name":"mode-development-rebuild","mode":"development","watch":true}'
benchmark "many-chunks-esm", scenario '{"name":"mode-development-rebuild","mode":"development","watch":true}'
benchmark "json-modules", scenario '{"name":"mode-development-rebuild","mode":"development","watch":true}'
benchmark "concatenate-modules", scenario '{"name":"mode-production","mode":"production"}'
- …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 "concatenate-modules", scenario '{"name":"mode-production","mode":"production"}'
benchmark "context-esm", scenario '{"name":"mode-production","mode":"production"}'
benchmark "common-libs", scenario '{"name":"mode-production","mode":"production"}'
benchmark "asset-modules-resource", scenario '{"name":"mode-production","mode":"production"}'
benchmark "css-modules", scenario '{"name":"mode-production","mode":"production"}'
benchmark "asset-modules-inline", scenario '{"name":"mode-production","mode":"production"}'
benchmark "devtool-eval", scenario '{"name":"mode-production","mode":"production"}'
benchmark "asset-modules-bytes", scenario '{"name":"mode-production","mode":"production"}'
unit benchmark "scope-analyzer-unit", analyze 'typescript.js'
benchmark "unsafe-cache", 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
⚡ 1 improved benchmark
❌ 1 regressed benchmark
✅ 404 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 fix/provide-plugin-async-esm (aab1899) with main (4d15e69)2
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
❌ Patch coverage is 95.45455% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 96.45%. Comparing base (a4b0878) to head (aab1899).
⚠️ Report is 2 commits behind head on main.
Additional details and impacted files
@@ Coverage Diff @@
## main #22728 +/- ##
=======================================
Coverage 96.45% 96.45%
=======================================
Files 776 776
Lines 135521 135537 +16
Branches 45645 45655 +10
=======================================
+ Hits 130711 130728 +17
+ Misses 4810 4809 -1
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.
Uh oh!
There was an error while loading. Please reload this page.
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) |  |  |
---
> ⚠️ **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 [@​xiaoxiaojx](https://github.com/xiaoxiaojx) in [#​22865](webpack/webpack#22865))
- Avoid allocating CSS module sets for single-group chunks. (by [@​xiaoxiaojx](https://github.com/xiaoxiaojx) in [#​22866](webpack/webpack#22866))
- Return the value of every module type loaded with `importModule()`. (by [@​alexander-akait](https://github.com/alexander-akait) in [#​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 [@​aryanraj45](https://github.com/aryanraj45) in [#​22699](webpack/webpack#22699))
- Rebuild under `cacheUnaffected` a module whose re-export target goes or returns. (by [@​aryanraj45](https://github.com/aryanraj45) in [#​22749](webpack/webpack#22749))
- Fix "Self-reference dependency has unused export name" for CommonJS namespace re-exports. (by [@​alexander-akait](https://github.com/alexander-akait) in [#​22791](webpack/webpack#22791))
- Fix `exportType: "style"` CSS modules throwing outside the runtime chunk. (by [@​lazerg](https://github.com/lazerg) in [#​22833](webpack/webpack#22833))
- Fix crash when a CSS module with `exportType: "style"` imports an ignored stylesheet. (by [@​codeXsidd](https://github.com/codeXsidd) in [#​22846](webpack/webpack#22846))
- Keep empty process environment variables that `.env` files don't define in `DotenvPlugin`. (by [@​alexander-akait](https://github.com/alexander-akait) in [#​22794](webpack/webpack#22794))
- Rehash an ESM entry chunk when a chunk it imports by file name changes. (by [@​alexander-akait](https://github.com/alexander-akait) in [#​22804](webpack/webpack#22804))
- Handle a NUL inside an HTML CDATA section the way the parsing spec does. (by [@​dependabot](https://github.com/apps/dependabot) in [#​22811](webpack/webpack#22811))
- Keep module exports live across chunks, runtimes, HMR and eval, sparing globals. (by [@​alexander-akait](https://github.com/alexander-akait) in [#​22733](webpack/webpack#22733))
- Await asynchronous modules that `ProvidePlugin` injects into ES modules. (by [@​alexander-akait](https://github.com/alexander-akait) in [#​22728](webpack/webpack#22728))
- Keep a resolve that ends after the compiler closed from throwing. (by [@​alexander-akait](https://github.com/alexander-akait) in [#​22795](webpack/webpack#22795))
- Preserve string names passed to SharedWorker constructors. (by [@​bjohansebas](https://github.com/bjohansebas) in [#​22770](webpack/webpack#22770))
- Preserve string contents when extracting source map comments. (by [@​bjohansebas](https://github.com/bjohansebas) in [#​22768](webpack/webpack#22768))
- Scope strict-mode, async and generator block function declarations to their block. (by [@​alexander-akait](https://github.com/alexander-akait) in [#​22800](webpack/webpack#22800))
- Preserve raw dotenv values when reusing cached environment files. (by [@​Eshiv-Pandey](https://github.com/Eshiv-Pandey) in [#​22787](webpack/webpack#22787))
- Preserve assigned or patched built-ins, conversions and pattern targets. (by [@​aryanraj45](https://github.com/aryanraj45) in [#​22761](webpack/webpack#22761))
- Keep globals a `globalThis` write replaces, and `slice` on a patched array. (by [@​alexander-akait](https://github.com/alexander-akait) in [#​22862](webpack/webpack#22862))
- Skip HTML script tags for shared chunks that emit no JavaScript. (by [@​bjohansebas](https://github.com/bjohansebas) in [#​22779](webpack/webpack#22779))
- Keep the digits Firefox lays out a minified CSS percentage with. (by [@​alexander-akait](https://github.com/alexander-akait) in [#​22718](webpack/webpack#22718))
- Reject a second `srcset` descriptor after a `0x` density descriptor. (by [@​alexander-akait](https://github.com/alexander-akait) in [#​22741](webpack/webpack#22741))
- Minify JavaScript faster, folding string methods on constants and `x -= 1`. (by [@​alexander-akait](https://github.com/alexander-akait) in [#​22823](webpack/webpack#22823))
- Shorten minified JavaScript, and keep it running like its source. (by [@​alexander-akait](https://github.com/alexander-akait) in [#​22717](webpack/webpack#22717))
- Drop more unused functions, arguments, calls, global reads and variable copies when minifying JavaScript. (by [@​alexander-akait](https://github.com/alexander-akait) in [#​22789](webpack/webpack#22789))
- Minify JavaScript smaller where swc does, and fold a function's `length` right. (by [@​alexander-akait](https://github.com/alexander-akait) in [#​22826](webpack/webpack#22826))
- Reduce JavaScript output size where oxc or swc produce smaller output. (by [@​alexander-akait](https://github.com/alexander-akait) in [#​22829](webpack/webpack#22829))
- Update watchpack to 2.6.3 and rebuild on a `node_modules` created mid-build. (by [@​alexander-akait](https://github.com/alexander-akait) in [#​22743](webpack/webpack#22743))
- Support `concatenateModules` with `cacheUnaffected`. (by [@​alexander-akait](https://github.com/alexander-akait) in [#​22746](webpack/webpack#22746))
- Update schema-utils to 4.8.1. (by [@​alexander-akait](https://github.com/alexander-akait) in [#​22774](webpack/webpack#22774))
- Keep CSS fallbacks, vendor overrides, `oklch()` hues and HTML elements. (by [@​alexander-akait](https://github.com/alexander-akait) in [#​22753](webpack/webpack#22753))
- Validate `CleanPlugin` and `DotenvPlugin` options with a precompiled check, so valid options no longer compile their schema at startup. (by [@​alexander-akait](https://github.com/alexander-akait) in [#​22758](webpack/webpack#22758))
- Speed up startup and CSS minification, sharing the compile cache with workers. (by [@​xiaoxiaojx](https://github.com/xiaoxiaojx) in [#​22706](webpack/webpack#22706))
- Use precise, generic types for modules, parsers, generators, stats and loaders. (by [@​alexander-akait](https://github.com/alexander-akait) in [#​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
markharding
pushed a commit
to futo-org/Harbor
that referenced
this pull request
Oct 29, 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) |  |  |
---
> ⚠️ **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 [@​xiaoxiaojx](https://github.com/xiaoxiaojx) in [#​22865](webpack/webpack#22865))
- Avoid allocating CSS module sets for single-group chunks. (by [@​xiaoxiaojx](https://github.com/xiaoxiaojx) in [#​22866](webpack/webpack#22866))
- Return the value of every module type loaded with `importModule()`. (by [@​alexander-akait](https://github.com/alexander-akait) in [#​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 [@​aryanraj45](https://github.com/aryanraj45) in [#​22699](webpack/webpack#22699))
- Rebuild under `cacheUnaffected` a module whose re-export target goes or returns. (by [@​aryanraj45](https://github.com/aryanraj45) in [#​22749](webpack/webpack#22749))
- Fix "Self-reference dependency has unused export name" for CommonJS namespace re-exports. (by [@​alexander-akait](https://github.com/alexander-akait) in [#​22791](webpack/webpack#22791))
- Fix `exportType: "style"` CSS modules throwing outside the runtime chunk. (by [@​lazerg](https://github.com/lazerg) in [#​22833](webpack/webpack#22833))
- Fix crash when a CSS module with `exportType: "style"` imports an ignored stylesheet. (by [@​codeXsidd](https://github.com/codeXsidd) in [#​22846](webpack/webpack#22846))
- Keep empty process environment variables that `.env` files don't define in `DotenvPlugin`. (by [@​alexander-akait](https://github.com/alexander-akait) in [#​22794](webpack/webpack#22794))
- Rehash an ESM entry chunk when a chunk it imports by file name changes. (by [@​alexander-akait](https://github.com/alexander-akait) in [#​22804](webpack/webpack#22804))
- Handle a NUL inside an HTML CDATA section the way the parsing spec does. (by [@​dependabot](https://github.com/apps/dependabot) in [#​22811](webpack/webpack#22811))
- Keep module exports live across chunks, runtimes, HMR and eval, sparing globals. (by [@​alexander-akait](https://github.com/alexander-akait) in [#​22733](webpack/webpack#22733))
- Await asynchronous modules that `ProvidePlugin` injects into ES modules. (by [@​alexander-akait](https://github.com/alexander-akait) in [#​22728](webpack/webpack#22728))
- Keep a resolve that ends after the compiler closed from throwing. (by [@​alexander-akait](https://github.com/alexander-akait) in [#​22795](webpack/webpack#22795))
- Preserve string names passed to SharedWorker constructors. (by [@​bjohansebas](https://github.com/bjohansebas) in [#​22770](webpack/webpack#22770))
- Preserve string contents when extracting source map comments. (by [@​bjohansebas](https://github.com/bjohansebas) in [#​22768](webpack/webpack#22768))
- Scope strict-mode, async and generator block function declarations to their block. (by [@​alexander-akait](https://github.com/alexander-akait) in [#​22800](webpack/webpack#22800))
- Preserve raw dotenv values when reusing cached environment files. (by [@​Eshiv-Pandey](https://github.com/Eshiv-Pandey) in [#​22787](webpack/webpack#22787))
- Preserve assigned or patched built-ins, conversions and pattern targets. (by [@​aryanraj45](https://github.com/aryanraj45) in [#​22761](webpack/webpack#22761))
- Keep globals a `globalThis` write replaces, and `slice` on a patched array. (by [@​alexander-akait](https://github.com/alexander-akait) in [#​22862](webpack/webpack#22862))
- Skip HTML script tags for shared chunks that emit no JavaScript. (by [@​bjohansebas](https://github.com/bjohansebas) in [#​22779](webpack/webpack#22779))
- Keep the digits Firefox lays out a minified CSS percentage with. (by [@​alexander-akait](https://github.com/alexander-akait) in [#​22718](webpack/webpack#22718))
- Reject a second `srcset` descriptor after a `0x` density descriptor. (by [@​alexander-akait](https://github.com/alexander-akait) in [#​22741](webpack/webpack#22741))
- Minify JavaScript faster, folding string methods on constants and `x -= 1`. (by [@​alexander-akait](https://github.com/alexander-akait) in [#​22823](webpack/webpack#22823))
- Shorten minified JavaScript, and keep it running like its source. (by [@​alexander-akait](https://github.com/alexander-akait) in [#​22717](webpack/webpack#22717))
- Drop more unused functions, arguments, calls, global reads and variable copies when minifying JavaScript. (by [@​alexander-akait](https://github.com/alexander-akait) in [#​22789](webpack/webpack#22789))
- Minify JavaScript smaller where swc does, and fold a function's `length` right. (by [@​alexander-akait](https://github.com/alexander-akait) in [#​22826](webpack/webpack#22826))
- Reduce JavaScript output size where oxc or swc produce smaller output. (by [@​alexander-akait](https://github.com/alexander-akait) in [#​22829](webpack/webpack#22829))
- Update watchpack to 2.6.3 and rebuild on a `node_modules` created mid-build. (by [@​alexander-akait](https://github.com/alexander-akait) in [#​22743](webpack/webpack#22743))
- Support `concatenateModules` with `cacheUnaffected`. (by [@​alexander-akait](https://github.com/alexander-akait) in [#​22746](webpack/webpack#22746))
- Update schema-utils to 4.8.1. (by [@​alexander-akait](https://github.com/alexander-akait) in [#​22774](webpack/webpack#22774))
- Keep CSS fallbacks, vendor overrides, `oklch()` hues and HTML elements. (by [@​alexander-akait](https://github.com/alexander-akait) in [#​22753](webpack/webpack#22753))
- Validate `CleanPlugin` and `DotenvPlugin` options with a precompiled check, so valid options no longer compile their schema at startup. (by [@​alexander-akait](https://github.com/alexander-akait) in [#​22758](webpack/webpack#22758))
- Speed up startup and CSS minification, sharing the compile cache with workers. (by [@​xiaoxiaojx](https://github.com/xiaoxiaojx) in [#​22706](webpack/webpack#22706))
- Use precise, generic types for modules, parsers, generators, stats and loaders. (by [@​alexander-akait](https://github.com/alexander-akait) in [#​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
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
area: types
types.d.ts, JSDoc annotations, hand-maintained declarations
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.
|