Skip to content

Conversation

@karlseguin
Copy link
Collaborator

Replaces #913

Refactors some of the module loading logic. Both normal modules import and
dynamic module import now share more of the same code - they both go through
the slightly modified `module` function.

Dynamic modules now check the cache first, before loading, and when cached,
resolve the correct promise. This can now happen regardless of the module
loading state.

Also tried to replace some page arenas with call arenas and added some basic
tests for both normal and dynamic module loading.
@karlseguin karlseguin merged commit 6b35664 into main Sep 24, 2025
10 checks passed
@karlseguin karlseguin deleted the dynamic_import_caching branch September 24, 2025 01:23
@github-actions github-actions bot locked and limited conversation to collaborators Sep 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants