callstack / repack

A Webpack-based toolkit to build your React Native application with full support of Webpack ecosystem.
https://re-pack.dev
MIT License
1.48k stars 110 forks source link

refactor: split federation runtime plugin into separate plugins #803

Open jbroma opened 2 hours ago

jbroma commented 2 hours ago

Summary

Splitting the runtime plugin in order to enable more granular control. FederationRuntimePlugin now becomes two runtime plugins:

Users can opt out of the default plugins by using disableDefaultRuntimePlugins in the MF2 Plugin config.

ResolverPlugin can be configured similar to how RetryPlugin from MF2 core: https://module-federation.io/plugin/plugins/retry-plugin.html#usage (i.e. creating own runtime plugin that wraps the ResolverPlugin)

Test plan

changeset-bot[bot] commented 2 hours ago

🦋 Changeset detected

Latest commit: 3a5a1192c292e54399a213487e8b6724a5b47aa7

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

This PR includes changesets to release 3 packages | Name | Type | | ---------------------------- | ----- | | @callstack/repack | Minor | | @callstack/repack-dev-server | Minor | | @callstack/repack-init | Minor |

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

vercel[bot] commented 2 hours ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **repack-website** | ⬜️ Ignored ([Inspect](https://vercel.com/callstack-team/repack-website/2UGoaGyCF6dQoAH8LbP8dwEKZhnU)) | [Visit Preview](https://repack-website-git-refactor-separate-runt-8deffe-callstack-team.vercel.app) | | Nov 25, 2024 11:21pm |