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:
Skamt 2022-09-28 21:00:44 +01:00 committed by GitHub
parent b2aae545c4
commit 22fa1d71c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

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();