core
core copied to clipboard
chore: no auto preload when calling loadRemote
Description
Stop auto preload when calling loadRemote, users should call preloadRemote Api by manually or use autoPreloadPlugin
When use autoPreloadPlugin ?
Before @module-federation/[email protected], ModuleFederation would automatically preload the resources of remote modules by default.
However, in some scenarios, users do not need this behavior, so we no longer automatically preload, but instead provide this plug-in and let users control whether to enable this behavior.
Therefore, if you use @module-federation/[email protected] and later versions, want to maintain the same behavior as before, or want to enable automatic preloading, then you need to enable this plugin.
Related Issue
Types of changes
- [ ] Docs change / refactoring / dependency upgrade
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
Checklist
- [x] I have added tests to cover my changes.
- [x] All new and existing tests passed.
- [x] I have updated the documentation.
🦋 Changeset detected
Latest commit: c3c447252314aaafbb78ec0b18ade6bd8d20e8c5
The changes in this PR will be included in the next version bump.
This PR includes changesets to release 28 packages
| Name | Type |
|---|---|
| @module-federation/runtime | Patch |
| @module-federation/devtools | Patch |
| @module-federation/dts-plugin | Patch |
| @module-federation/nextjs-mf | Patch |
| @module-federation/node | Patch |
| @module-federation/runtime-tools | Patch |
| @module-federation/webpack-bundler-runtime | Patch |
| @module-federation/auto-preload | Patch |
| @module-federation/enhanced | Patch |
| @module-federation/rspack | Patch |
| 3008-runtime-remote | Patch |
| host | Patch |
| host-v5 | Patch |
| host-vue3 | Patch |
| remote1 | Patch |
| remote2 | Patch |
| remote3 | Patch |
| @module-federation/modernjs | Patch |
| @module-federation/sdk | Patch |
| @module-federation/managers | Patch |
| @module-federation/manifest | Patch |
| @module-federation/third-party-dts-extractor | Patch |
| @module-federation/bridge-react | Patch |
| @module-federation/bridge-vue3 | Patch |
| @module-federation/bridge-shared | Patch |
| @module-federation/bridge-react-webpack-plugin | Patch |
| @module-federation/esbuild | Patch |
| @module-federation/utilities | Patch |
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
Deploy Preview for module-federation-docs ready!
| Name | Link |
|---|---|
| Latest commit | c3c447252314aaafbb78ec0b18ade6bd8d20e8c5 |
| Latest deploy log | https://app.netlify.com/sites/module-federation-docs/deploys/668e5edf2eefcc0008fecacd |
| Deploy Preview | https://deploy-preview-2741--module-federation-docs.netlify.app |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Stale pull request message