webpack/webpack

Module Federation Share should support layers/issuerLayer

Open

#18988 opened on Nov 18, 2024

View on GitHub
 (7 comments) (0 reactions) (0 assignees)JavaScript (65,766 stars) (9,356 forks)batch import
enhancementhelp wantedinactive

Description

Feature request

Loader layers currently have no convention for support when using something like issueLayer, for example with RSC

What is the expected behavior?

There should be a convention to specify or auto assign the layers used when creating the shares

What is motivation or use case for adding/changing the behavior?

RSC support likely will need loader layers or layers to work

How should this be implemented in your opinion?

Unsure but i think it needs to be cone at ConsumeShared and ProvideShared, either in the hooks or in the Module classes of these - but i do not know

Are you willing to work on this yourself? yes

Contributor guide