mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-20 14:08:15 -05:00
Fix hotpatch
Properly uncache children modules.
This commit is contained in:
parent
e1d3447695
commit
a7fbc7e96f
|
|
@ -601,7 +601,7 @@ exports.uncacheTree = function (root) {
|
|||
for (let i = 0; i < uncache.length; ++i) {
|
||||
if (require.cache[uncache[i]]) {
|
||||
newuncache.push.apply(newuncache,
|
||||
require.cache[uncache[i]].children.map(toId)
|
||||
require.cache[uncache[i]].children.map(cachedModule => cachedModule.id)
|
||||
);
|
||||
delete require.cache[uncache[i]];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user