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) {