-
-
Notifications
You must be signed in to change notification settings - Fork 372
Open
Description
Describe the bug
As the title suggests, module.parser.javascript. dynamicImportFetchPriority
is not supported for the host's shared modules.
The generated __webpack_require__.initializeSharingData
factories simply call __webpack_require__.e("chunkId")
, without the second fetchPriority
parameter. causing shared modules to be loaded with a lower priority.
in the provided repo, a demo can be run by
- install dependencies:
pnpm install
- run demo:
pnpm demo

the resulting initializeSharingData
does not pass the fetchpriority
to __webpack_require__.e
, causing shared module javascript requests to run at a low
priority
Reproduction
https://github.com/chenhuang444/micro-app-example/tree/demo/module-federation
Used Package Manager
pnpm
System Info
System:
OS: macOS 14.5
CPU: (11) arm64 Apple M3 Pro
Memory: 176.47 MB / 18.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.20.6 - ~/.nvm/versions/node/v18.20.6/bin/node
Yarn: 1.22.22 - ~/.nvm/versions/node/v18.20.6/bin/yarn
npm: 10.8.2 - ~/.nvm/versions/node/v18.20.6/bin/npm
pnpm: 10.7.0 - ~/.nvm/versions/node/v18.20.6/bin/pnpm
Browsers:
Chrome: 139.0.7258.155
Safari: 17.5
Validations
- Read the docs.
- Read the common issues list.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a Module federation issue and not a framework-specific issue.
- The provided reproduction is a minimal reproducible example of the bug.
Metadata
Metadata
Assignees
Labels
No labels