module-federation / core

Module Federation is a concept that allows developers to share code and resources across multiple JavaScript applications
https://module-federation.io/
MIT License
1.27k stars 182 forks source link

Exact matching alias does not work as expected in bridge webpack plugin #2677

Open vtv6 opened 5 days ago

vtv6 commented 5 days ago

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

zhoushaw commented 1 day ago

Let me see.