aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2022-08-31 23:04:18 +0200
committerVendicated <vendicated@riseup.net>2022-08-31 23:04:18 +0200
commit7ce37f858c0a1e09e1f6497fbd32b172cc9b3c6c (patch)
tree2a9add59fcced15e1760f752bb10040e229f84fd /src/utils
parentb2f762fda8ec93feab123891e7c01efda00388c8 (diff)
downloadVencord-7ce37f858c0a1e09e1f6497fbd32b172cc9b3c6c.tar.gz
Vencord-7ce37f858c0a1e09e1f6497fbd32b172cc9b3c6c.tar.bz2
Vencord-7ce37f858c0a1e09e1f6497fbd32b172cc9b3c6c.zip
Unindent, plugins is now an object instead of []
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/patchWebpack.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/utils/patchWebpack.ts b/src/utils/patchWebpack.ts
index 9f4b435..dffce86 100644
--- a/src/utils/patchWebpack.ts
+++ b/src/utils/patchWebpack.ts
@@ -85,6 +85,7 @@ function patchPush() {
const newCode = code.replace(replacement.match, replacement.replace);
if (newCode === code) {
logger.warn(`Patch by ${patch.plugin} had no effect: ${replacement.match}`);
+ logger.debug("Function Source:\n", code);
} else {
const newMod = (0, eval)(`// Webpack Module ${id} - Patched by ${[...patchedBy].join(", ")}\n${newCode}\n//# sourceURL=WebpackModule${id}`);
code = newCode;