aboutsummaryrefslogtreecommitdiff
path: root/src/webpack/patchWebpack.ts
diff options
context:
space:
mode:
authorNuckyz <61953774+Nuckyz@users.noreply.github.com>2022-10-13 20:47:10 -0300
committerGitHub <noreply@github.com>2022-10-14 01:47:10 +0200
commit87b6d6ab12d41cc8a215a25376990974a0128198 (patch)
tree37b51b16bfb89854a99571b68be59cc5847c10d3 /src/webpack/patchWebpack.ts
parentbf49acd53578a141689f7faedbe5912ab10ab570 (diff)
downloadVencord-87b6d6ab12d41cc8a215a25376990974a0128198.tar.gz
Vencord-87b6d6ab12d41cc8a215a25376990974a0128198.tar.bz2
Vencord-87b6d6ab12d41cc8a215a25376990974a0128198.zip
Patch#all option to patch duplicate modules (#99)
Diffstat (limited to 'src/webpack/patchWebpack.ts')
-rw-r--r--src/webpack/patchWebpack.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/webpack/patchWebpack.ts b/src/webpack/patchWebpack.ts
index 7f5dbf6..54034df 100644
--- a/src/webpack/patchWebpack.ts
+++ b/src/webpack/patchWebpack.ts
@@ -127,7 +127,7 @@ function patchPush() {
patchedBy.delete(patch.plugin);
}
}
- patches.splice(i--, 1);
+ if (!patch.all) patches.splice(i--, 1);
}
}
}