Merge branch 'modules-proxy-patches' into immediate-finds-modules-proxy
This commit is contained in:
commit
ef895e787a
|
@ -17,9 +17,7 @@ type PatchedModuleFactory = ModuleFactory & {
|
|||
$$vencordOriginal?: ModuleFactory;
|
||||
};
|
||||
|
||||
type PatchedModuleFactories = Record<PropertyKey, PatchedModuleFactory> & {
|
||||
[Symbol.toStringTag]?: string;
|
||||
};
|
||||
type PatchedModuleFactories = Record<PropertyKey, PatchedModuleFactory>;
|
||||
|
||||
const logger = new Logger("WebpackInterceptor", "#8caaee");
|
||||
|
||||
|
@ -140,7 +138,11 @@ Object.defineProperty(Function.prototype, "m", {
|
|||
|
||||
allModuleFactories.add(moduleFactories);
|
||||
|
||||
moduleFactories[Symbol.toStringTag] = "ModuleFactories";
|
||||
Object.defineProperty(moduleFactories, Symbol.toStringTag, {
|
||||
value: "ModuleFactories",
|
||||
configurable: true,
|
||||
writable: true
|
||||
});
|
||||
moduleFactories = new Proxy(moduleFactories, moduleFactoriesHandler);
|
||||
}
|
||||
|
||||
|
|
|
@ -88,8 +88,11 @@ export function _initWebpack(webpackRequire: WebpackRequire) {
|
|||
wreq = webpackRequire;
|
||||
cache = webpackRequire.c;
|
||||
|
||||
// @ts-ignore
|
||||
webpackRequire.c[Symbol.toStringTag] = "ModuleCache";
|
||||
Object.defineProperty(webpackRequire.c, Symbol.toStringTag, {
|
||||
value: "ModuleCache",
|
||||
configurable: true,
|
||||
writable: true
|
||||
});
|
||||
}
|
||||
|
||||
let devToolsOpen = false;
|
||||
|
|
Loading…
Reference in a new issue