mirror of https://github.com/webpack/webpack.git
add comment, optimize code
This commit is contained in:
parent
9010d8bf77
commit
4479b6c660
|
|
@ -106,6 +106,7 @@ class SideEffectsFlagPlugin {
|
|||
reexportMaps.set(module, (map = new Map()));
|
||||
}
|
||||
for (const [key, ids] of mode.map) {
|
||||
// TODO Support reexporting namespace object
|
||||
if (ids.length > 0 && !mode.checked.has(key)) {
|
||||
map.set(key, {
|
||||
module: moduleGraph.getModule(dep),
|
||||
|
|
@ -144,9 +145,7 @@ class SideEffectsFlagPlugin {
|
|||
}
|
||||
|
||||
// Update imports along the reexports from sideEffectFree modules
|
||||
for (const pair of reexportMaps) {
|
||||
const module = pair[0];
|
||||
const map = pair[1];
|
||||
for (const [module, map] of reexportMaps) {
|
||||
for (const connection of moduleGraph.getIncomingConnections(
|
||||
module
|
||||
)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue