jacob-ebey / webpack-federated-stats-plugin

Write out relevant federation stats to a file for further consumption.
17 stars 6 forks source link

Add support for NodeFederationPlugin #9

Closed apehead closed 1 year ago

apehead commented 1 year ago

I'm not sure about the status of this project and if this feature is out of the scope, but this PR tries to add support for NodeFederationPlugin (NodeFederationPlugin and UniversalFederationPlugin).

The only thing needed to make this work with these plugins is fixing how to get the plugin options, as ModuleFederationPlugin uses _options while NodeFederationPlugin and UniversalFederationPlugin use options.

The code still needs some minor changes, but it works. Maybe you can propose a better approach.

Maybe we should propose using _options in NodeFederationPlugin/UniversalFederationPlugin to be aligned with ModuleFederationPlugin :thinking:

apehead commented 1 year ago

Closing as this is no longer necessary as the project uses a custom plugin to generate the stats.