webpack.js.org icon indicating copy to clipboard operation
webpack.js.org copied to clipboard

Document webpack change: feat: support custom chunk name in container expose options

Open webpack-bot opened this issue 4 years ago • 0 comments

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.

webpack-bot avatar Jan 29 '21 14:01 webpack-bot