core
core copied to clipboard
Exact matching alias does not work as expected in bridge webpack plugin
Describe the bug
@module-federation/bridge-react-webpack-plugin doesn't work as expected, It set alias for both "react-router-dom/" and "react-router-dom"
Reproduction
https://github.com/vtv6/router-remote yarn start
Used Package Manager
yarn
System Info
System:
OS: macOS 14.2.1
CPU: (8) arm64 Apple M2
Memory: 52.13 MB / 16.00 GB
Shell: 3.7.0 - /opt/homebrew/bin/fish
Binaries:
Node: 18.19.1 - ~/.local/share/nvm/v18.19.1/bin/node
Yarn: 1.22.21 - /opt/homebrew/bin/yarn
npm: 10.2.4 - ~/.local/share/nvm/v18.19.1/bin/npm
pnpm: 8.15.4 - /opt/homebrew/bin/pnpm
Browsers:
Chrome: 126.0.6478.127
Safari: 17.2.1
Validations
- [X] Read the docs.
- [X] Read the common issues list.
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [X] Make sure this is a Module federation issue and not a framework-specific issue.
- [X] The provided reproduction is a minimal reproducible example of the bug.