Update webpackmodules.js

`foundModule` should be reset after finding the module, otherwise it returns duplicates of as much as how many `getters loop` iterations are left after the first valid condition
This commit is contained in:
2022-09-28 21:00:44 +01:00
parent 9e8ab8e084
commit 40b808d98f
+2 -1
View File
@@ -170,6 +170,7 @@ export default class WebpackModules {
if (!foundModule) continue;
if (first) return foundModule;
rm.push(foundModule);
foundModule = null;
}
}
else {
@@ -519,4 +520,4 @@ export default class WebpackModules {
}
}
WebpackModules.initialize();
WebpackModules.initialize();