Repository navigation
fix(runtime): selectively clear providers while retaining shared dependencies - #5051
Merged
2heal1 merged 2 commits intoSep 10, 2026
Merged
Conversation
🦋 Changeset detectedLatest commit: cdecd88 The changes in this PR will be included in the next version bump. This PR includes changesets to release 48 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
2heal1
marked this pull request as ready for review
September 10, 2026 09:18
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
@module-federation/devtools
@module-federation/cli
create-module-federation
@module-federation/dts-plugin
@module-federation/enhanced
@module-federation/error-codes
@module-federation/esbuild
@module-federation/managers
@module-federation/manifest
@module-federation/metro
@module-federation/metro-plugin-rnc-cli
@module-federation/metro-plugin-rnef
@module-federation/metro-plugin-rock
@module-federation/modern-js
@module-federation/modern-js-v3
@module-federation/native-federation-tests
@module-federation/native-federation-typescript
@module-federation/nextjs-mf
@module-federation/node
@module-federation/observability-plugin
@module-federation/playground
@module-federation/retry-plugin
@module-federation/rsbuild-plugin
@module-federation/rspack
@module-federation/rspress-plugin
@module-federation/rstest
@module-federation/runtime
@module-federation/runtime-core
@module-federation/runtime-tools
@module-federation/sdk
@module-federation/storybook-addon
@module-federation/third-party-dts-extractor
@module-federation/treeshake-frontend
@module-federation/treeshake-server
@module-federation/typescript
@module-federation/utilities
@module-federation/webpack-bundler-runtime
@module-federation/bridge-react
@module-federation/bridge-react-webpack-plugin
@module-federation/bridge-shared
@module-federation/bridge-vue3
@module-federation/inject-external-runtime-core-plugin
commit: |
This was referenced Sep 10, 2026
Merged
4 of 6 tasks
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
When an active shared dependency keeps its provider alive, call
__webpack_clear_exposed_cache__to release unrelated exposed execution-cache entries. This cache implementation has not shipped: host and provider must use matching builds. There is no missing-capability fallback that silently retains the full provider cache.Rspack PR web-infra-dev/rspack#15614 provides shared dependency closure retention and transitive static parent metadata. The artifact matrix covers concatenation, minified numeric IDs, shared/lazy strict identity and non-shared WeakRef GC. A Node 24 resolver hook supports local compiler integration through ESM and CJS.
Validation: runtime-tools build 6/6; runtime-core 134/134 and bundler runtime 109/109 tests. New compiler + Modern HTTP artifact matrix: 19 passes, 3 known stale-adapter TODOs, no skips. Removed six tests for the discarded legacy-provider fallback. The older installed canary now fails with a missing-method error, as expected. Latest full Modern SSR CI passes both remote-cache and shared-cache/GC specs; an earlier intermittent capture failure remains recorded and is not claimed fixed.
Changeset planning and changed-file formatting pass. Full-repo Prettier reports 683 existing/generated files. Other CI jobs were skipped in favor of affected packages and Modern SSR integration; exact commands and limitations are in tools/ssr-cache/VALIDATION.md. R1 remains incomplete pending adapter lifecycle. No publication.
Related Issue
Continues #5049 and the SSR cache RFC. Companion compiler: web-infra-dev/rspack#15614.
Types of changes
Checklist