Repository navigation
Lazy dynamic imports for ssr - #98836
Merged
Merged
Conversation
Contributor
Tests PassedCommit: d49614c |
mischnic
reviewed
Sep 22, 2026
mischnic
reviewed
Sep 22, 2026
mischnic
reviewed
Sep 22, 2026
jimmyhmiller
force-pushed
the
jimmym/lazy-dynamic-imports-ssr-v2
branch
from
September 22, 2026 18:51
80ed85b to
5cb75a7
Compare
mischnic
reviewed
Sep 23, 2026
| hash_salt, | ||
| style_groups_algorithm, | ||
| per_page_module_graph, | ||
| lazy_dynamic_imports: _, |
Contributor
Author
There was a problem hiding this comment.
Just keeping scope constrained. I will go and revisit these if they make sense to also be lazy. Basically just not trying to tackle too much all at once.
Member
There was a problem hiding this comment.
alright. I'd just add todo comments with that workflow. you might end up forgetting something
jimmyhmiller
force-pushed
the
jimmym/lazy-dynamic-imports-ssr-v2
branch
from
September 23, 2026 14:48
5cb75a7 to
6d8f43c
Compare
Introduce the development-only `turbopackLazyDynamicImportsSSR` flag and allow the Node runtime to ensure uncached chunks on demand.
Install the on-demand loader only when its host hook is present, leaving the normal development runtime path unchanged otherwise.
Track server chunk ownership and rebuild owning entries before the Node runtime loads a chunk activated by `turbopackLazyDynamicImportsSSR`.
Enable manifest-backed lazy compilation for the Node.js App SSR context behind `turbopackLazyDynamicImportsSSR`. Cover activation, recompilation, and concurrent renders.
Use the review-suggested comment to connect the host hook to `EcmascriptOptionsContext.lazy_compilation`.
Regenerate the Node runtime source map after rebasing onto canary.
jimmyhmiller
force-pushed
the
jimmym/lazy-dynamic-imports-ssr-v2
branch
from
September 23, 2026 16:23
6d8f43c to
7272e47
Compare
Refresh reference manifests when lazy chunks activate. Track activated RSC chunks for server HMR.
mischnic
approved these changes
Sep 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Enables lazy imports for ssr. #97305 This was the old Pr for this. Tried to incorporate the feedback there. The changes here were from testing on v0/chat