Skip to content

feat: support import.defer() for statical path#20064

Merged
alexander-akait merged 3 commits intowebpack:mainfrom
ahabhgk:defer-import-statical-path-dynamic-import
Oct 30, 2025
Merged

feat: support import.defer() for statical path#20064
alexander-akait merged 3 commits intowebpack:mainfrom
ahabhgk:defer-import-statical-path-dynamic-import

Conversation

@ahabhgk
Copy link
Contributor

@ahabhgk ahabhgk commented Oct 30, 2025

Summary

Support import.defer() for statical path (support for context module will be added in future PR).

What kind of change does this PR introduce?

feature

Did you add tests for your changes?

Yes

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?

Nothing for now, doc for import.defer() can be added after defer support for context module is done

@codspeed-hq
Copy link

codspeed-hq bot commented Oct 30, 2025

CodSpeed Performance Report

Merging #20064 will degrade performances by 13.53%

Comparing ahabhgk:defer-import-statical-path-dynamic-import (ae33442) with main (42ed7bc)

Summary

⚡ 4 improvements
❌ 1 regression
✅ 64 untouched

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark BASE HEAD Change
benchmark "css-modules", scenario '{"name":"mode-development-rebuild","mode":"development","watch":true}' 56 ms 46.3 ms +21.15%
benchmark "devtool-source-map", scenario '{"name":"mode-development-rebuild","mode":"development","watch":true}' 37.9 ms 33.7 ms +12.45%
benchmark "many-chunks-esm", scenario '{"name":"mode-development","mode":"development"}' 202.9 ms 234.6 ms -13.53%
benchmark "wasm-modules-async", scenario '{"name":"mode-development","mode":"development"}' 180 ms 153.8 ms +17.07%
benchmark "wasm-modules-async", scenario '{"name":"mode-development-rebuild","mode":"development","watch":true}' 56.9 ms 50.9 ms +11.9%

@alexander-akait alexander-akait merged commit b6e8c72 into webpack:main Oct 30, 2025
49 of 52 checks passed
@alexander-akait
Copy link
Member

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants