Skip to content

Commit

Permalink
fix(webpack5): 修复module._identifier为undefined返回true,导致页面空白问题
Browse files Browse the repository at this point in the history
  • Loading branch information
soulhat committed Apr 15, 2022
1 parent d7b2e7d commit a727626
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ export default class MiniSplitChunksPlugin extends SplitChunksPlugin {
name: cacheGroupName,
test: module => {
if (!module.resource) {
return module._identifier === depInfo.identifier
return !!module._identifier && module._identifier === depInfo.identifier
}
return module.resource === depInfo.resource
},
Expand Down

0 comments on commit a727626

Please sign in to comment.