diff --git a/src/plugins/noBlockedMessages/index.ts b/src/plugins/noBlockedMessages/index.ts index 16863f7d4..a61fcb81f 100644 --- a/src/plugins/noBlockedMessages/index.ts +++ b/src/plugins/noBlockedMessages/index.ts @@ -20,7 +20,6 @@ import { definePluginSettings } from "@api/Settings"; import { Devs } from "@utils/constants"; import { Logger } from "@utils/Logger"; import definePlugin, { OptionType } from "@utils/types"; -import { findByProps } from "@webpack"; import { RelationshipStore } from "@webpack/common"; import { Message } from "discord-types/general"; diff --git a/src/plugins/reviewDB/auth.tsx b/src/plugins/reviewDB/auth.tsx index 4cacf279e..8d9789dd7 100644 --- a/src/plugins/reviewDB/auth.tsx +++ b/src/plugins/reviewDB/auth.tsx @@ -7,7 +7,6 @@ import { DataStore } from "@api/index"; import { Logger } from "@utils/Logger"; import { openModal } from "@utils/modal"; -import { findExportedComponent } from "@webpack"; import { OAuth2AuthorizeModal, showToast, Toasts, UserStore } from "@webpack/common"; import { ReviewDBAuth } from "./entities"; diff --git a/src/plugins/spotifyControls/SpotifyStore.ts b/src/plugins/spotifyControls/SpotifyStore.ts index 8ee9724f2..4e44b13d1 100644 --- a/src/plugins/spotifyControls/SpotifyStore.ts +++ b/src/plugins/spotifyControls/SpotifyStore.ts @@ -16,7 +16,6 @@ * along with this program. If not, see . */ -import { proxyLazy } from "@utils/lazy"; import { findByProps, webpackDependantLazy } from "@webpack"; import { Flux, FluxDispatcher } from "@webpack/common"; diff --git a/src/webpack/api.tsx b/src/webpack/api.tsx index 43855bfee..2f1c08602 100644 --- a/src/webpack/api.tsx +++ b/src/webpack/api.tsx @@ -466,7 +466,7 @@ export function mapMangledModule(code: string | RegExp | callbackCalled = true; if (typeof exports !== "object") return; - + for (const exportKey in exports) { const exportValue = exports[exportKey]; if (exportValue == null) continue; diff --git a/src/webpack/common/utils.ts b/src/webpack/common/utils.ts index c792294e4..14a448ea6 100644 --- a/src/webpack/common/utils.ts +++ b/src/webpack/common/utils.ts @@ -16,8 +16,6 @@ * along with this program. If not, see . */ -import { Channel } from "discord-types/general"; - // eslint-disable-next-line path-alias/no-relative import { _resolveDiscordLoaded, filters, find, findByCode, findByProps, mapMangledModule, waitFor } from "../api"; import type * as t from "./types/utils"; diff --git a/src/webpack/patchWebpack.ts b/src/webpack/patchWebpack.ts index b50108db7..66484e6e5 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.");