From d473d520479926b9fc082c2411c2e39241d2fc3b Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Wed, 12 Jun 2024 22:32:42 -0300 Subject: [PATCH] update comment --- src/webpack/patchWebpack.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/webpack/patchWebpack.ts b/src/webpack/patchWebpack.ts index 0ebf6f7ca..d28388600 100644 --- a/src/webpack/patchWebpack.ts +++ b/src/webpack/patchWebpack.ts @@ -339,8 +339,7 @@ function patchFactory(id: PropertyKey, factory: AnyModuleFactory) { // The patched factory wrapper, define it in an object to preserve the name after minification const patchedFactory: PatchedModuleFactory = { PatchedFactory(...args: Parameters) { - // Restore the original factory in all the module factories objects, - // because we want to make sure the original factory is restored properly, no matter what is the Webpack instance + // Restore the original factory in all the module factories objects. We want to make sure the original factory is restored properly, no matter what is the Webpack instance for (const wreq of allWebpackInstances) { define(wreq.m, id, { value: patchedFactory.$$vencordOriginal }); }