Skip to content

Conversation

@ScriptedAlchemy
Copy link
Member

@ScriptedAlchemy ScriptedAlchemy commented Oct 23, 2024

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

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Checklist

  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I have updated the documentation.

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-bot
Copy link

changeset-bot bot commented Oct 23, 2024

🦋 Changeset detected

Latest commit: 5c9925f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@module-federation/nextjs-mf Patch

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

@netlify
Copy link

netlify bot commented Oct 23, 2024

Deploy Preview for module-federation-docs ready!

Name Link
🔨 Latest commit 5c9925f
🔍 Latest deploy log https://app.netlify.com/sites/module-federation-docs/deploys/671962a03adb550008562f10
😎 Deploy Preview https://deploy-preview-3114--module-federation-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

@squadronai squadronai bot left a 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.

Copy link
Contributor

@squadronai squadronai bot left a 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

@module-federation module-federation deleted a comment from squadronai bot Oct 23, 2024
@module-federation module-federation deleted a comment from squadronai bot Oct 23, 2024
@module-federation module-federation deleted a comment from squadronai bot Oct 23, 2024
@module-federation module-federation deleted a comment from squadronai bot Oct 23, 2024
@module-federation module-federation deleted a comment from squadronai bot Oct 23, 2024
@module-federation module-federation deleted a comment from squadronai bot Oct 23, 2024
@ScriptedAlchemy ScriptedAlchemy changed the title refactor(nextjs-mf): simplify handling of server externals fix(nextjs-mf): simplify handling of server externals Oct 23, 2024
@ScriptedAlchemy ScriptedAlchemy merged commit d3e904b into main Oct 23, 2024
23 checks passed
@ScriptedAlchemy ScriptedAlchemy deleted the next-exter branch October 23, 2024 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants