Skip to content
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(node): Node Federation Runtime Plugin #2013

Open
wants to merge 100 commits into
base: main
Choose a base branch
from

Conversation

ScriptedAlchemy
Copy link
Member

@ScriptedAlchemy ScriptedAlchemy commented Jan 23, 2024

Description

Replaces webpack based plugin with pure runtime plugin

This runtime plugin replaces the need for compiler-specific integrations for node federation.
It does so by applying the needed runtime modules and handlers in the runtime plugin instead of in a template.

PR introduces a significant change to the Node.js implementation. The script loading utility, previously used by webpack to load external chunks, has been converted into a runtime plugin for Node.js. This change enhances the ability to load scripts dynamically at runtime, providing greater flexibility and efficiency in the application.

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.

Base automatically changed from debugging-container-init to feat/use-runtime-script-load January 23, 2024 07:17
@ScriptedAlchemy ScriptedAlchemy marked this pull request as ready for review April 19, 2024 06:39
ScriptedAlchemy added 4 commits April 19, 2024 16:28
# Conflicts:
#	.github/workflows/build-and-test.yml
#	packages/enhanced/src/lib/container/AsyncBoundaryPlugin.ts
#	packages/enhanced/src/lib/container/runtime/getFederationGlobal.ts
# Conflicts:
#	.github/workflows/build-and-test.yml
#	apps/3000-home/package.json
#	pnpm-lock.yaml
Copy link

changeset-bot bot commented Apr 22, 2024

🦋 Changeset detected

Latest commit: fcd4316

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

This PR includes changesets to release 16 packages
Name Type
@module-federation/enhanced Patch
@module-federation/nextjs-mf Minor
@module-federation/node Minor
3008-runtime-remote Patch
@module-federation/modernjs Patch
@module-federation/runtime Patch
@module-federation/rspack Patch
@module-federation/webpack-bundler-runtime Patch
@module-federation/sdk Patch
@module-federation/runtime-tools Patch
@module-federation/managers Patch
@module-federation/manifest Patch
@module-federation/dts-plugin Patch
@module-federation/third-party-dts-extractor Patch
@module-federation/devtools Patch
@module-federation/utilities 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

ScriptedAlchemy added 3 commits April 22, 2024 13:48
# Conflicts:
#	packages/node/src/plugins/NodeFederationPlugin.ts
#	packages/node/src/plugins/UniversalFederationPlugin.ts
#	packages/node/src/runtimePlugin.ts
ScriptedAlchemy added 6 commits April 24, 2024 14:36
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.

None yet

2 participants