webpack.js.org
                                
                                 webpack.js.org copied to clipboard
                                
                                    webpack.js.org copied to clipboard
                            
                            
                            
                        Document webpack change: feat: support custom chunk name in container expose options
A pull request by @artchenamazon was merged and maintainers requested a documentation change.
See pull request: https://github.com/webpack/webpack/pull/12527
Module federation generates async chunks for exposed modules, which by default named after the internal module id. This change allows users to assign a custom name so that the file can be statically referenced.
closes https://github.com/webpack/webpack/issues/12504
What kind of change does this PR introduce?
Feature
Did you add tests for your changes?
Added 1 stats test case
Does this PR introduce a breaking change?
No, the new name option is optional
What needs to be documented once your changes are merged?
This change adds a new option under ModuleFederationPlugin.exposes, if there are existing documentation they should be updated.