From 1e55ae5327d3a29337fc0589fbb831a860bc3fec Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Fri, 24 May 2024 18:46:36 -0300 Subject: [PATCH] this is more clean --- src/webpack/patchWebpack.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webpack/patchWebpack.ts b/src/webpack/patchWebpack.ts index 075a5a624..723271f98 100644 --- a/src/webpack/patchWebpack.ts +++ b/src/webpack/patchWebpack.ts @@ -107,7 +107,7 @@ Object.defineProperty(Function.prototype, "m", { // setImmediate to clear this property setter if this is not the main Webpack // If this is the main Webpack, wreq.m will always be set before the timeout runs - const setterTimeout = setTimeout(() => delete (this as Partial).p, 0); + const setterTimeout = setTimeout(() => Reflect.deleteProperty(this, "p"), 0); Object.defineProperty(this, "p", { configurable: true,