Skip to content

Commit

Permalink
optimize exposes chunkName
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangHongEn committed Nov 14, 2023
1 parent badb3c9 commit 3d2392c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/virtualModule/exposes.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports.getExposesModule = function (pluginInstance) {
const url = options.exposes[key]
return `
"${key}" () {
return import("../${url}")
return import("../${url}" /* webpackChunkName: 'vendors-exposes_${key.replace(/\.|\/|\\/g, "_")}' */)
}\r\n
`
})}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mf-webpack4",
"version": "1.4.4",
"version": "1.4.5",
"description": "Webpack 4 Module Federation Plugin",
"repository": {
"type": "git",
Expand Down

0 comments on commit 3d2392c

Please sign in to comment.