feat(runtime-core): add import-map remote entry support#4390
feat(runtime-core): add import-map remote entry support#4390ScriptedAlchemy wants to merge 40 commits intomainfrom
Conversation
|
Cursor Agent can help with this pull request. Just |
✅ Deploy Preview for module-federation-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
🦋 Changeset detectedLatest commit: 0a0c44c The changes in this PR will be included in the next version bump. This PR includes changesets to release 45 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 |
Bundle Size Report10 package(s) changed, 31 unchanged.
Total dist: 6.39 MB (+7.2 kB (+0.1%)) |
…ederation-importmaps-556d
…ederation-importmaps-556d
|
@cursor need import maps support for shared modules as well. |
|
Thanks for the request — we can add import‑map support for shared modules too. Today runtime‑core already lets you do it manually by providing a Proposed approach (small, explicit API):
Example target API: shared: {
react: {
import: 'react',
version: '18.3.1',
shareConfig: { singleton: true },
},
}Before I implement, can you confirm:
Once I have that, I’ll add the runtime support + tests and update docs. |
Explicitly type the dynamic import helper to keep the Rollup TS build strict. Co-authored-by: Cursor <cursoragent@cursor.com>
…ederation-importmaps-556d
@module-federation/devtools
@module-federation/cli
create-module-federation
@module-federation/data-prefetch
@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/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/retry-plugin
@module-federation/rsbuild-plugin
@module-federation/rspack
@module-federation/rspress-plugin
@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: |
Android Release APK for all devicesNote: if the download link expires, please re-run the workflow to generate a new build. Generated at 2026-02-15T22:33:27.407Z UTC |
iOS Release APP for simulatorsNote: if the download link expires, please re-run the workflow to generate a new build. Generated at 2026-02-15T22:35:04.466Z UTC |
…ederation-importmaps-556d
Resolve the dts-plugin TYPE-001 failure by correcting package entry paths for workspace dependencies and updating RawSource usage for webpack typings. Co-authored-by: Cursor <cursoragent@cursor.com>
Remove leftover dead config mutation block and close the exported config function so nx format:check can parse the file in CI. Co-authored-by: Cursor <cursoragent@cursor.com>
Restore sdk and error-codes export paths to the filenames emitted by the current build so CI package resolution no longer fails on these branches. Co-authored-by: Cursor <cursoragent@cursor.com>


Summary
runtime-coreimportconfiguration with dynamic import flowsdisableImportMapoptimization options through enhanced/rspack/sdk plugin surfacesChanged Packages
@module-federation/runtime-core@module-federation/enhanced@module-federation/rspack@module-federation/sdkChangesets
.changeset/clean-cobras-rest.md(patch for all listed packages)Base
mainSingle-PR Review Guide (No Additional PRs)
This PR will remain a single PR. Improvements are being done in-place (no stacked or follow-up PR splitting).
Suggested Review Order
In-Place Scope Trim Checklist