Turbopack hmr: preserve group factory consistency for compressed modules (#89976)
## Summary - update `installCompressedModuleFactories` to reuse an existing factory in a compressed ID group when filling missing IDs - keep `newModuleId` notifications aligned with actual IDs installed (`newModuleId(id)`) - add an execution regression test for the mixed-group case where one ID already has a factory and another is missing - regenerate affected runtime snapshots (runtime/debug-ids/workers/preset_env) Aims to fix cases like this being seen recently: ```sh Error: Module 8896 was instantiated because it was required from module 18500, but the module factory is not available. ``` ``` ## Test Plan - `cargo test -p turbopack-tests --test execution test_tests__execution__turbopack__runtime__factory_group_existing_factory__input__index_js -- --nocapture` - `cargo test -p turbopack-tests --test snapshot test_tests__snapshot__runtime__default_build_runtime__input__index_js -- --nocapture` - `cargo test -p turbopack-tests --test snapshot test_tests__snapshot__runtime__default_dev_runtime__input__index_js -- --nocapture` - `cargo test -p turbopack-tests --test snapshot test_tests__snapshot__debug_ids -- --nocapture` - `cargo test -p turbopack-tests --test snapshot test_tests__snapshot__swc_transforms__preset_env__input__index_js -- --nocapture` - `cargo test -p turbopack-tests --test snapshot test_tests__snapshot__workers__ -- --nocapture`
Showing
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
Please
register
or
sign in
to comment