GeezerVison is showing github.com — fix(provide): await asynchronous provided dependencies by bjohansebas · Pull Request #22661 · webpack/webpack
Conversation
bjohansebas
commented
Oct 12, 2026
•
edited by coderabbitai
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Summary
ProvidePlugin reads asynchronous dependencies before they finish, producing undefined or throwing on nested properties. Await them using the existing async import machinery, preserve CommonJS exports, and propagate errors through dependents. This reuses the module graph without parsing source again.
import("./mixed.js").then(({ result }) => result);
// Before: [42, undefined, undefined]
// After: [42, 42, 42]
Targeted size comparison: synchronous ProvidePlugin cases are unchanged; existing async-externals and generator-lowering entry bundles grow by 36 B and 40 B gzip, respectively.
What kind of change does this PR introduce?
fix
Did you add tests for your changes?
Yes: test/configCases/plugins/provide-plugin-async/ covers exports, promise externals, CommonJS, failures, cycles, deferred imports, and generator lowering. All 278 targeted tests pass, including persistent cache; full yarn lint passes.
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
Codex assisted with reproducing the bug, implementing the fix, adding regression tests, and running validation.
Summary by CodeRabbit
- Bug Fixes
ProvidePlugin now correctly handles asynchronously loaded dependencies, including their exports and errors.
- Improved behavior for asynchronous dependency cycles and CommonJS modules.
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 12, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

Important
Review skipped
Review was skipped as selected files did not have any reviewable changes.
⛔ Files ignored due to path filters (1)
-
types.d.ts is excluded by !types.d.ts
⚙️ Run configuration
-
- Configuration used: Repository: webpack/webpack/.coderabbit.yaml
- Review profile: CHILL
- Plan: Advanced
- Run ID:
50d020d3-4c79-4b69-b3d5-37c6b4633d99
📥 Commits
-
Reviewing files that changed from the base of the PR and between e9ecd4b and d74d589.
⛔ Files ignored due to path filters (1)
-
types.d.ts is excluded by !types.d.ts
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:
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:
71a8d771-e62f-4702-ad5e-24532bea31dc
📥 Commits
-
Reviewing files that changed from the base of the PR and between 2b40c96 and e9ecd4b.
⛔ Files ignored due to path filters (1)
-
types.d.ts is excluded by !types.d.ts
📒 Files selected for processing (31)
-
.changeset/016-provide-plugin-async-dependencies.md
lib/async-modules/AsyncModuleHelpers.js
lib/async-modules/InferAsyncModulesPlugin.js
lib/dependencies/esm/ESMCompatibilityDependency.js
lib/graph/Dependency.js
lib/provide/ProvidedDependency.js
lib/runtime/AsyncModuleGeneratorRuntimeModule.js
lib/runtime/AsyncModuleRuntimeModule.js
lib/runtime/MakeDeferredNamespaceObjectRuntime.js
lib/runtime/RuntimeGlobals.js
test/configCases/plugins/provide-plugin-async/async.js
test/configCases/plugins/provide-plugin-async/consumer.cjs
test/configCases/plugins/provide-plugin-async/consumer.js
test/configCases/plugins/provide-plugin-async/cycle-async.js
test/configCases/plugins/provide-plugin-async/cycle-bridge.js
test/configCases/plugins/provide-plugin-async/cycle.cjs
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.cjs
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/transitive.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; 7 remain after this review.
📝 Walkthrough
-
Walkthrough
Provided dependencies now participate in async-module dependency tracking and runtime evaluation. The change adds shared async initialization handling and tests asynchronous provided modules across module formats, exports, failures, and cycles.
Changes
Async Provided Dependencies
| Layer / File(s) |
Summary |
Track provided dependencies in the async graph lib/graph/Dependency.js, lib/async-modules/AsyncModuleHelpers.js, lib/async-modules/InferAsyncModulesPlugin.js, lib/runtime/MakeDeferredNamespaceObjectRuntime.js |
Provided dependencies are included in dependency-kind typing, async traversal and propagation, and deferred namespace target collection. |
Build shared async-module boundaries lib/async-modules/AsyncModuleHelpers.js, lib/dependencies/esm/ESMCompatibilityDependency.js, lib/runtime/AsyncModuleGeneratorRuntimeModule.js, lib/runtime/AsyncModuleRuntimeModule.js, lib/runtime/RuntimeGlobals.js |
A shared helper creates async-module initialization fragments and cycle-group identifiers. ESM compatibility and runtime code use the shared boundary and support module-export replacement. |
Initialize asynchronous provided modules lib/provide/ProvidedDependency.js, test/configCases/plugins/provide-plugin-async/*, .changeset/016-provide-plugin-async-dependencies.md |
Provided dependency templates add async initialization and await-dependencies fragments for asynchronous modules. Tests cover exports, mixed dependencies, CommonJS, externals, failures, and cycles; a patch Changeset is added. |
Suggested labels: area: runtime, area: parser, area: types
Priority: ➖ Normal
Change: Bug fix
Merge Risk: ⚪ Minimal · up to e9ecd
No actionable merge-blocking issue remains; the change is ready to merge after normal checks.
Pre-merge checks · 3 · 1
-
Failed checks (1 inconclusive)
| Check name |
Status |
Explanation |
Resolution |
| Title check |
 |
The title uses valid Conventional Commit syntax, allowed type fix, optional scope provide, and accurately describes the change. The branch prefix is not provided, so the required type-to-branch-pr… |
Provide the branch name or confirm that its prefix is fix. If confirmed, this title passes the 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 uses valid Conventional Commit syntax, allowed type fix, optional scope provide, and accurately describes the change. The branch prefix is not provided, so the required type-to-branch-prefix match cannot be verified.
✨ 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.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Types CoverageCoverage after merging fix/provide-plugin-async-dependencies into main will be
Coverage Report| File | Stmts | Branches | Funcs | Lines | Uncovered Lines |
|---|
| bin | | webpack.js | 98.82% | 100% | 100% | 98.82% | 103 | | declarations | | WebpackOptions.ts | 99.94% | 100% | 100% | 99.94% | 4193 | | 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.60% | 100% | 100% | 98.60% | 1757, 2078, 2085, 2093, 2115, 2118, 23, 3075, 3578–3579, 3611, 4200, 4204, 4331, 4352, 4477, 4514, 4521, 4574–4575, 4579, 4584, 4600–4601, 4615–4616, 4621–4622, 5145, 5171, 6001, 6018, 6036, 6052, 6067, 6092, 6095, 6463, 6466–6467, 6472, 6487, 6570, 6594, 6708, 837–838 | | 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.88% | 100% | 100% | 98.88% | 460, 532, 719, 784 | | 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 | 99.78% | 100% | 100% | 99.78% | 206 | | webpack.js | 97.84% | 100% | 100% | 97.84% | 278, 300, 302 | | 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.14% | 100% | 100% | 98.14% | 337, 361, 364, 494, 56, 61 | | 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 | 98.95% | 100% | 100% | 98.95% | 96 | | 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.61% | 100% | 100% | 98.61% | 116, 548, 580, 630, 9 | | defaults.js | 99.44% | 100% | 100% | 99.44% | 1624–1626, 1634, 283, 286, 291, 295 | | defineConfig.js | 100% | 100% | 100% | 100% | | | getClaimedAssetTypes.js | 100% | 100% | 100% | 100% | | | normalization.js | 99.12% | 100% | 100% | 99.12% | 279–280, 346, 361 | | 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 | 83.33% | 100% | 100% | 83.33% | 197, 202–210, 212–217 | | CssModulesPlugin.js | 99.86% | 100% | 100% | 99.86% | 884 | | CssParser.js | 99.48% | 100% | 100% | 99.48% | 1044, 1075, 24, 2406, 3053, 3056, 3062, 3103, 3106, 3145, 3148, 3485, 5039, 5042, 928 | | CssServerStylesRuntimeModule.js | 100% | 100% | 100% | 100% | | | conventions.js | 98.65% | 100% | 100% | 98.65% | 93 | | cssMinify.js | 97.56% | 100% | 100% | 97.56% | 164, 173 | | data.js | 99.84% | 100% | 100% | 99.84% | 229, 5601 | | syntax-parser.js | 99.65% | 100% | 100% | 99.65% | 10306–10307, 10843–10844, 10881, 11076, 11122, 13454–13457, 13557–13558, 13655–13656, 14301, 14598, 14600, 15109, 15475, 17591, 2608, 3313, 3315, 3320, 3339, 4088, 4094, 7570, 7608, 7615 | | syntax-printer.js | 99.31% | 100% | 100% | 99.31% | 2539–2540, 2542–2543, 2545–2546, 2551, 2818–2821, 2914, 351, 3589, 4009, 4118, 4806, 5107, 5894, 725 | | syntax.js | 100% | 100% | 100% | 100% | | | topologicalSort.js | 100% | 100% | 100% | 100% | | | lib/debug | | ProfilingPlugin.js | 96.22% | 100% | 100% | 96.22% | 169, 425, 554, 561, 570, 574, 583, 588, 594, 599, 92 | | lib/define | | DefinePlugin.js | 98.85% | 100% | 100% | 98.85% | 1495, 268–269, 285, 304, 378, 936, 938, 943, 967 | | DotenvPlugin.js | 98.07% | 100% | 100% | 98.07% | 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% | | | |
|
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 (d74d589).
Install it locally:
npm i -D webpack@https://pkg.pr.new/webpack@d74d589
yarn add -D webpack@https://pkg.pr.new/webpack@d74d589
pnpm add -D webpack@https://pkg.pr.new/webpack@d74d589
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
added
area: parser
JavaScript parsing and dependency analysis (lib/javascript, lib/dependencies)
area: runtime
Emitted runtime and chunk loading across targets (lib/runtime, lib/web, lib/node, lib/esm)
area: types
types.d.ts, JSDoc annotations, hand-maintained declarations
labels
Oct 12, 2026
Generated code size
Comparing base (52996d7) to head (d74d589). Merging this pull request changes the size of 181 asset(s) whose tests it leaves untouched, moves 8 asset(s) whose tests it edits too and adds 58 new asset(s).
| What moved |
Tests |
Assets |
Gzip |
Raw |
Test edit |
| Changed, test untouched |
77 |
181 |
🔴 ↑ +9.11 KiB |
🔴 ↑ +33.26 KiB |
— |
| Changed, test edited |
2 |
8 |
🔴 ↑ +310 B |
🔴 ↑ +740 B |
🔴 ↑ +217 B |
| New |
1 |
58 |
⚪ added +30.29 KiB |
⚪ added +62.55 KiB |
— |
| Deleted |
0 |
0 |
— |
— |
— |
| Unchanged |
— |
8423 |
— |
— |
— |
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.
181 asset(s) changed size, test untouched, biggest 20 by raw or gzip change
|
Asset |
Before |
After |
Change |
Gzip (9) |
Brotli (11) |
Zstd (19) |
| 🔴 ↑ |
externals/side-effects-library-types amd-async/bundle2.js |
6.91 KiB |
7.21 KiB |
+304 B (+4.30%) |
+71 B (+3.68%) |
+66 B (+3.84%) |
+67 B (+3.53%) |
| 🔴 ↑ |
externals/side-effects-browser-types script/bundle2.js |
8.92 KiB |
9.21 KiB |
+304 B (+3.33%) |
+74 B (+2.94%) |
+60 B (+2.69%) |
+66 B (+2.65%) |
| 🔴 ↑ |
wasm/full-hash-digest-source-phase bundle0.js |
9.62 KiB |
9.91 KiB |
+304 B (+3.09%) |
+68 B (+2.48%) |
+57 B (+2.33%) |
+63 B (+2.32%) |
| 🔴 ↑ |
externals/side-effects-types bundle0.js |
13.58 KiB |
13.88 KiB |
+304 B (+2.19%) |
+65 B (+2.03%) |
+47 B (+1.65%) |
+63 B (+2.02%) |
| 🔴 ↑ |
defer-import/async-in-graph-dynamic-import bundle0.js |
17.81 KiB |
18.11 KiB |
+304 B (+1.67%) |
+63 B (+1.53%) |
+55 B (+1.47%) |
+57 B (+1.42%) |
| 🔴 ↑ |
defer-import/async-in-graph-dynamic-import-context bundle0.js |
19.59 KiB |
19.89 KiB |
+304 B (+1.52%) |
+63 B (+1.41%) |
+59 B (+1.45%) |
+64 B (+1.48%) |
| 🔴 ↑ |
defer-import/defer-cycle-transitive-throw-and-related bundle0.js |
22.74 KiB |
23.04 KiB |
+304 B (+1.31%) |
+69 B (+1.41%) |
+54 B (+1.22%) |
+64 B (+1.35%) |
| 🔴 ↑ |
defer-import/async-in-graph bundle0.js |
24.44 KiB |
24.73 KiB |
+304 B (+1.21%) |
+69 B (+1.59%) |
+59 B (+1.50%) |
+60 B (+1.43%) |
| 🔴 ↑ |
module/async-entry-await bundle0.mjs |
5.25 KiB |
5.54 KiB |
+299 B (+5.56%) |
+70 B (+4.52%) |
+76 B (+5.46%) |
+72 B (+4.68%) |
| 🔴 ↑ |
module/async-entry-await-multiple bundle0.mjs |
6.10 KiB |
6.39 KiB |
+299 B (+4.78%) |
+70 B (+4.16%) |
+62 B (+4.12%) |
+67 B (+4.03%) |
| 🔴 ↑ |
library/module-async-entry-multiple node-runtime-last/node-runtime-last/runtime.mjs |
6.83 KiB |
7.12 KiB |
+299 B (+4.28%) |
+69 B (+3.80%) |
+63 B (+3.83%) |
+66 B (+3.68%) |
| 🔴 ↑ |
library/module-async-entry-multiple node-runtime-last-async/node-runtime-last-async/runtime.mjs |
6.83 KiB |
7.12 KiB |
+299 B (+4.28%) |
+69 B (+3.80%) |
+63 B (+3.83%) |
+66 B (+3.68%) |
| 🔴 ↑ |
library/module-async-entry-multiple web-runtime-last-async/web-runtime-last-async/runtime.mjs |
6.83 KiB |
7.12 KiB |
+299 B (+4.28%) |
+69 B (+3.80%) |
+63 B (+3.83%) |
+66 B (+3.68%) |
| 🔴 ↑ |
library/module-async-entry-multiple webworker-runtime-last-async/webworker-runtime-last-async/runtime.mjs |
6.83 KiB |
7.12 KiB |
+299 B (+4.28%) |
+69 B (+3.80%) |
+63 B (+3.83%) |
+66 B (+3.68%) |
| 🔴 ↑ |
library/module-async-entry-multiple web-runtime-last/web-runtime-last/runtime.mjs |
6.83 KiB |
7.12 KiB |
+299 B (+4.28%) |
+69 B (+3.80%) |
+63 B (+3.83%) |
+66 B (+3.68%) |
| 🔴 ↑ |
library/module-async-entry-multiple webworker-runtime-last/webworker-runtime-last/runtime.mjs |
6.83 KiB |
7.12 KiB |
+299 B (+4.28%) |
+69 B (+3.80%) |
+63 B (+3.83%) |
+66 B (+3.68%) |
| 🔴 ↑ |
library/module-async-entry-multiple universal-runtime-last-async/universal-runtime-last-async/runtime.mjs |
6.83 KiB |
7.12 KiB |
+299 B (+4.28%) |
+69 B (+3.80%) |
+63 B (+3.83%) |
+66 B (+3.68%) |
| 🔴 ↑ |
library/module-async-entry-multiple universal-runtime-last/universal-runtime-last/runtime.mjs |
6.83 KiB |
7.12 KiB |
+299 B (+4.28%) |
+69 B (+3.80%) |
+63 B (+3.83%) |
+66 B (+3.68%) |
| 🔴 ↑ |
library/module-async-entry-multiple node-runtime-single/node-runtime-single/runtime.mjs |
6.83 KiB |
7.12 KiB |
+299 B (+4.28%) |
+69 B (+3.80%) |
+63 B (+3.83%) |
+66 B (+3.68%) |
| 🔴 ↑ |
library/module-async-entry-multiple web-runtime-single/web-runtime-single/runtime.mjs |
6.83 KiB |
7.12 KiB |
+299 B (+4.28%) |
+69 B (+3.80%) |
+63 B (+3.83%) |
+66 B (+3.68%) |
|
… 161 more, see the uploaded report |
|
|
|
|
|
|
8 asset(s) changed size, test edited
|
Asset |
Before |
After |
Change |
Gzip (9) |
Brotli (11) |
Zstd (19) |
Test edit (per test) |
| 🔴 ↑ |
library/1-use-library 6/bundle6.js |
3.70 KiB |
3.85 KiB |
+148 B (+3.90%) |
+54 B (+3.88%) |
+39 B (+3.24%) |
+48 B (+3.64%) |
+148 B |
| 🔴 ↑ |
library/1-use-library 7/bundle7.js |
3.73 KiB |
3.87 KiB |
+148 B (+3.88%) |
+55 B (+3.90%) |
+40 B (+3.28%) |
+47 B (+3.51%) |
+148 B |
| 🔴 ↑ |
async-library/1-use-library 403.bundle0.mjs |
1.54 KiB |
1.61 KiB |
+74 B (+4.69%) |
+34 B (+4.13%) |
+36 B (+4.79%) |
+38 B (+4.65%) |
+69 B |
| 🔴 ↑ |
async-library/1-use-library bundle0.mjs |
1.88 KiB |
1.95 KiB |
+74 B (+3.85%) |
+34 B (+3.35%) |
+30 B (+3.20%) |
+37 B (+3.67%) |
+69 B |
| 🔴 ↑ |
library/1-use-library 17/bundle17.js |
2.07 KiB |
2.14 KiB |
+74 B (+3.49%) |
+34 B (+3.20%) |
+36 B (+3.77%) |
+36 B (+3.40%) |
+148 B |
| 🔴 ↑ |
library/1-use-library 36/bundle36.js |
2.07 KiB |
2.14 KiB |
+74 B (+3.49%) |
+33 B (+3.03%) |
+38 B (+3.91%) |
+35 B (+3.22%) |
+148 B |
| 🔴 ↑ |
library/1-use-library 37/bundle37.js |
2.08 KiB |
2.15 KiB |
+74 B (+3.47%) |
+33 B (+3.02%) |
+40 B (+4.08%) |
+38 B (+3.49%) |
+148 B |
| 🔴 ↑ |
library/1-use-library 18/bundle18.js |
2.08 KiB |
2.16 KiB |
+74 B (+3.47%) |
+33 B (+3.08%) |
+30 B (+3.12%) |
+39 B (+3.66%) |
+148 B |
58 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 |
7.70 KiB |
3.11 KiB |
2.76 KiB |
3.06 KiB |
| ⚪ added |
plugins/provide-plugin-async 2/bundle2.mjs |
6.49 KiB |
2.47 KiB |
2.22 KiB |
2.41 KiB |
| ⚪ added |
plugins/provide-plugin-async 3/bundle3.mjs |
6.49 KiB |
2.47 KiB |
2.22 KiB |
2.41 KiB |
| ⚪ added |
plugins/provide-plugin-async 4/bundle4.js |
6.14 KiB |
2.37 KiB |
2.14 KiB |
2.34 KiB |
| ⚪ added |
plugins/provide-plugin-async 0/bundle0.js |
5.99 KiB |
2.31 KiB |
2.09 KiB |
2.27 KiB |
| ⚪ added |
plugins/provide-plugin-async 5/bundle5.js |
3.27 KiB |
1.42 KiB |
1.29 KiB |
1.42 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 4/618.bundle4.js |
787 B |
409 B |
369 B |
411 B |
| ⚪ added |
plugins/provide-plugin-async 1/618.bundle1.js |
785 B |
418 B |
384 B |
420 B |
| ⚪ added |
plugins/provide-plugin-async 4/978.bundle4.js |
781 B |
426 B |
379 B |
427 B |
| ⚪ added |
plugins/provide-plugin-async 1/978.bundle1.js |
768 B |
427 B |
384 B |
427 B |
| ⚪ added |
plugins/provide-plugin-async 0/618.bundle0.js |
763 B |
402 B |
367 B |
404 B |
| ⚪ added |
plugins/provide-plugin-async 2/978.bundle2.mjs |
749 B |
415 B |
371 B |
419 B |
| ⚪ added |
plugins/provide-plugin-async 3/978.bundle3.mjs |
749 B |
415 B |
371 B |
419 B |
| ⚪ added |
plugins/provide-plugin-async 0/978.bundle0.js |
746 B |
410 B |
368 B |
409 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 |
|
… 38 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 4/main |
11 |
| ➕ |
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 5/main |
9 |
Built test/configCases with the defaults a user gets: 2221 test(s), 8670 asset(s), 99 emitted nothing.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
codecov
Bot
commented
Oct 12, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|
❌ Patch coverage is 98.92473% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 96.35%. Comparing base (52996d7) to head (d74d589).
⚠️ Report is 5 commits behind head on main.
Additional details and impacted files
@@ Coverage Diff @@
## main #22661 +/- ##
=======================================
Coverage 96.34% 96.35%
=======================================
Files 774 774
Lines 132985 133022 +37
Branches 44448 44465 +17
=======================================
+ Hits 128125 128170 +45
+ Misses 4860 4852 -8
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.
🚀 New features to boost your workflow:
- ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
- 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Merging this PR will degrade performance by 74.05%
⚠️ 108 benchmarks spent significant time in system calls
System calls cannot be consistently instrumented, so they are not included in the measure, which understates the real cost. Please switch to the Walltime instrument to accurately measure system calls.
Measurement and system calls
benchmark "import-meta-glob", scenario '{"name":"mode-development","mode":"development"}'
benchmark "asset-modules-bytes", scenario '{"name":"mode-development-rebuild","mode":"development","watch":true}'
benchmark "context-commonjs", scenario '{"name":"mode-development-rebuild","mode":"development","watch":true}'
benchmark "asset-modules-source", scenario '{"name":"mode-development-rebuild","mode":"development","watch":true}'
benchmark "asset-modules-resource", scenario '{"name":"mode-development-rebuild","mode":"development","watch":true}'
benchmark "devtool-eval-source-map", scenario '{"name":"mode-development-rebuild","mode":"development","watch":true}'
benchmark "context-esm", scenario '{"name":"mode-production","mode":"production"}'
benchmark "react", scenario '{"name":"mode-development-rebuild","mode":"development","watch":true}'
benchmark "cache-filesystem", scenario '{"name":"mode-production","mode":"production"}'
benchmark "side-effects-reexport", scenario '{"name":"mode-development-rebuild","mode":"development","watch":true}'
- …and 98 more
ℹ️ 32 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 "context-esm", scenario '{"name":"mode-production","mode":"production"}'
benchmark "common-libs", scenario '{"name":"mode-development","mode":"development"}'
benchmark "devtool-eval-source-map", scenario '{"name":"mode-production","mode":"production"}'
benchmark "cache-filesystem-cold", scenario '{"name":"mode-development","mode":"development"}'
benchmark "wasm-modules-async", scenario '{"name":"mode-production","mode":"production"}'
benchmark "context-commonjs", scenario '{"name":"mode-production","mode":"production"}'
benchmark "asset-modules-inline", scenario '{"name":"mode-production","mode":"production"}'
benchmark "common-libs", scenario '{"name":"mode-production","mode":"production"}'
benchmark "unsafe-cache", scenario '{"name":"mode-production","mode":"production"}'
benchmark "concatenate-modules", scenario '{"name":"mode-production","mode":"production"}'
- …and 22 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-dependencies (d74d589) with main (52996d7)
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure we really should resolve it in this way, look like AI again generated just a code to patch and resolve the issue, not design or architecture changes, that will be more right here
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Fixed with more simple version, thanks for raising it and feel free to fix more them
|
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.
Assignees
No one assigned
Labels
area: parser
JavaScript parsing and dependency analysis (lib/javascript, lib/dependencies)
area: runtime
Emitted runtime and chunk loading across targets (lib/runtime, lib/web, lib/node, lib/esm)
area: 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.
|