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:
parent
b2aae545c4
commit
22fa1d71c2
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue