-
-
Notifications
You must be signed in to change notification settings - Fork 374
fix(nextjs-mf): simplify handling of server externals #3114
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
Conversation
Refactored the handling of server externals by streamlining the logic to find and handle functions within the externals array, ensuring better compatibility with module federation utilities and other shared dependencies.
🦋 Changeset detectedLatest commit: 5c9925f The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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
The core changes in this pull request focus on refactoring the handling of server externals in the NextJS module federation setup. The main objectives are to streamline the logic for finding and processing functions within the externals array, ensuring better compatibility with module federation utilities and other shared dependencies.
The key changes include:
- Simplified the approach for handling server externals, improving the overall implementation.
- Optimized the logic to better integrate with module federation utilities and shared dependencies.
- Enhanced the robustness and maintainability of the NextJS module federation functionality.
These changes aim to improve the overall reliability and flexibility of the NextJS module federation setup, contributing to a more seamless integration with the existing codebase.
File Summaries
| File | Summary |
|---|---|
| packages/nextjs-mf/src/plugins/NextFederationPlugin/apply-server-plugins.ts | The code changes streamline the handling of server externals by improving the logic to find and process functions within the externals array. This ensures better compatibility with module federation utilities and other shared dependencies, simplifying the overall implementation. |
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: 6
Configuration
Squadron Mode: essential
Commits Reviewed
ac46d9ec803730cccd07f29d950ca8f8ced3d18f...5c9925f65c96c3325d15a697e9a3a247c0a13b71
Files Reviewed
- packages/nextjs-mf/src/plugins/NextFederationPlugin/apply-server-plugins.ts
Files Ignored
These files were ignored due to the filter in the squadron.yaml file.
- .changeset/ai-brave-wolf.md
- package.json
Description
Refactored the handling of server externals by streamlining the logic to find and handle functions within the externals array, ensuring better compatibility with module federation utilities and other shared dependencies.
Related Issue
Types of changes
Checklist