-
-
Notifications
You must be signed in to change notification settings - Fork 238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: adjust bridge router alias strategy #2950
Conversation
🦋 Changeset detectedLatest commit: d539f23 The changes in this PR will be included in the next version bump. This PR includes changesets to release 37 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 |
✅ Deploy Preview for module-federation-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Summary
This pull request adjusts the bridge router alias strategy to handle different versions of the react-router-dom
library. The primary goal is to ensure that the correct alias is used for the react-router-dom
dependency, whether it's version 5 or version 6.
The key changes include:
- Added logic to determine the major version of the
react-router-dom
library and set the appropriate alias accordingly. - If
react-router-dom
version 6 is not found in the project'spackage.json
, the alias will be set torouter-v6
. - This change helps maintain compatibility and integration with the existing codebase, ensuring a seamless transition between different versions of the
react-router-dom
library.
File Summaries
File | Summary |
---|---|
packages/bridge/bridge-react-webpack-plugin/src/utis.ts | The code changes adjust the bridge router alias strategy to handle different versions of the react-router-dom library. The primary purpose is to ensure that the correct alias is used for the react-router-dom dependency, whether it's version 5 or version 6. The changes include logic to determine the major version of the react-router-dom library and set the appropriate alias accordingly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Incremental Review
Comments posted: 4
Configuration
Squadron Mode: essential
Commits Reviewed
4a79d27662c70232dac3dc5ee651dadb16d833be...d539f231cb691ebf02eb13bdbc1e2a7d483217c6
Files Reviewed
- packages/bridge/bridge-react-webpack-plugin/src/utis.ts
Files Ignored
These files were ignored due to the filter in the squadron.yaml file.
- .changeset/fifty-kangaroos-compete.md
Description
feat: adjust bridge router alias strategy to alias to router-v6 when not found react-router-dom in package.json.
Related Issue
Types of changes
Checklist