Merge branch 'modules-proxy-patches' into immediate-finds-modules-proxy

This commit is contained in:
Nuckyz 2024-05-24 07:41:52 -03:00
commit e990795783
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9
2 changed files with 4 additions and 1 deletions

View file

@ -18,7 +18,7 @@ type PatchedModuleFactory = ModuleFactory & {
};
type PatchedModuleFactories = Record<PropertyKey, PatchedModuleFactory> & {
[Symbol.toStringTag]?: "ModuleFactories";
[Symbol.toStringTag]?: string;
};
const logger = new Logger("WebpackInterceptor", "#8caaee");

View file

@ -87,6 +87,9 @@ export const factoryListeners = new Set<(factory: ModuleFactory) => void>();
export function _initWebpack(webpackRequire: WebpackRequire) {
wreq = webpackRequire;
cache = webpackRequire.c;
// @ts-ignore
webpackRequire.c[Symbol.toStringTag] = "ModuleCache";
}
let devToolsOpen = false;