From 37e81c017e3b1fc47a58efcec02baafdc8d121ab Mon Sep 17 00:00:00 2001 From: Vendicated Date: Fri, 16 Sep 2022 20:52:51 +0200 Subject: [PATCH] patchWebpack: Fix toString on replaced factory methods --- src/utils/patchWebpack.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils/patchWebpack.ts b/src/utils/patchWebpack.ts index 798dcde0..488e430f 100644 --- a/src/utils/patchWebpack.ts +++ b/src/utils/patchWebpack.ts @@ -74,6 +74,8 @@ function patchPush() { } } }; + modules[id].toString = () => mod.toString(); + modules[id].original = originalMod; for (let i = 0; i < patches.length; i++) { const patch = patches[i];