Unindent, plugins is now an object instead of []

This commit is contained in:
Vendicated 2022-08-31 23:04:18 +02:00
parent b2f762fda8
commit 7ce37f858c
No known key found for this signature in database
GPG key ID: EC781ADFB93EFFA3
8 changed files with 65 additions and 14 deletions

View file

@ -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;