forgot this!

This commit is contained in:
Nuckyz 2024-05-23 03:38:06 -03:00
parent 5ca4e58fad
commit 688449ed62
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -11,7 +11,7 @@ import { PatchReplacement } from "@utils/types";
import { traceFunction } from "../debug/Tracer";
import { patches } from "../plugins";
import { _initWebpack, beforeInitListeners, factoryListeners, ModuleFactory, moduleListeners, subscriptions, WebpackRequire, wreq } from ".";
import { _initWebpack, beforeInitListeners, factoryListeners, ModuleFactory, moduleListeners, OnChunksLoaded, subscriptions, WebpackRequire, wreq } from ".";
const logger = new Logger("WebpackInterceptor", "#8caaee");
const initCallbackRegex = canonicalizeMatch(/{return \i\(".+?"\)}/);
@ -93,7 +93,7 @@ Object.defineProperty(Function.prototype, "O", {
Object.defineProperty(onChunksLoaded, "j", {
configurable: true,
set(v) {
set(v: OnChunksLoaded["j"]) {
// @ts-ignore
delete onChunksLoaded.j;
onChunksLoaded.j = v;