PluginExposesOptions
undefined
Module Federation
.A producer-specific parameter, setting exposes
indicates that this is a producer.
After configuration, the exposed modules will be separated into a distinct chunk, and if there are any asynchronous chunks, they will be extracted into individual chunks as well (the specific extraction behavior depends on the chunk splitting rules).
The PluginExposesOptions
type is as follows:
The exposeKey
is essentially consistent with the Package Entry Points specification (except for not supporting regular expression matching).
Example: