From 9e6f24cc92e8f025a92075306d1f4e4218919a49 Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Wed, 24 Jul 2024 18:02:02 -0300 Subject: [PATCH] work --- src/plugins/noBlockedMessages/index.ts | 1 - src/webpack/patchWebpack.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugins/noBlockedMessages/index.ts b/src/plugins/noBlockedMessages/index.ts index a61fcb81f..efd800938 100644 --- a/src/plugins/noBlockedMessages/index.ts +++ b/src/plugins/noBlockedMessages/index.ts @@ -21,7 +21,6 @@ import { Devs } from "@utils/constants"; import { Logger } from "@utils/Logger"; import definePlugin, { OptionType } from "@utils/types"; import { RelationshipStore } from "@webpack/common"; - import { Message } from "discord-types/general"; const settings = definePluginSettings({ diff --git a/src/webpack/patchWebpack.ts b/src/webpack/patchWebpack.ts index 66484e6e5..e460747d5 100644 --- a/src/webpack/patchWebpack.ts +++ b/src/webpack/patchWebpack.ts @@ -252,7 +252,7 @@ function wrapAndPatchFactory(id: PropertyKey, originalFactory: AnyModuleFactory) `id: ${String(id)}` + interpolateIfDefined`, WebpackInstance origin: ${webpackInstanceFileName}` + ")" ); - + _initWebpack(require as WebpackRequire); } else if (IS_DEV) { logger.error("WebpackRequire was not initialized, running modules without patches instead.");