From cfb493c593b2aadb1c5681ca52c66231deb8a36a Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Thu, 23 May 2024 06:22:01 -0300 Subject: [PATCH] make reporter use eagerPatches --- scripts/generateReport.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/scripts/generateReport.ts b/scripts/generateReport.ts index 7fc435249..7ef99b9db 100644 --- a/scripts/generateReport.ts +++ b/scripts/generateReport.ts @@ -324,6 +324,9 @@ async function runtime(token: string) { }); }); + // Enable eagerPatches to make all patches apply regardless of the module being required + Vencord.Settings.eagerPatches = false; + let wreq: typeof Vencord.Webpack.wreq; const { canonicalizeMatch, Logger } = Vencord.Util; @@ -493,12 +496,6 @@ async function runtime(token: string) { } })); - // Call the getter for all the values in the modules object - // So modules that were not required get patched by our proxy - for (const id in wreq.m) { - wreq.m[id]; - } - console.log("[PUP_DEBUG]", "Finished loading all chunks!"); for (const patch of Vencord.Plugins.patches) {