From 051bce89f8b16034b37a42ad2755928abd1b7c61 Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Sun, 18 Aug 2024 00:26:40 -0300 Subject: [PATCH] feat(Webpack): Add $$vencordPatchedSource to patched factories --- src/webpack/patchWebpack.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/webpack/patchWebpack.ts b/src/webpack/patchWebpack.ts index f32aeb789..4629434ae 100644 --- a/src/webpack/patchWebpack.ts +++ b/src/webpack/patchWebpack.ts @@ -233,7 +233,7 @@ function patchFactories(factories: Record string, original: any, (...args: any[]): void; }; + } as any as { toString: () => string, original: any, (...args: any[]): void; $$vencordPatchedSource?: string; }; factory.toString = originalMod.toString.bind(originalMod); factory.original = originalMod; @@ -354,5 +354,9 @@ function patchFactories(factories: Record