one more name cuz why not

This commit is contained in:
Nuckyz 2024-05-24 07:40:36 -03:00
parent 5fbabb0b70
commit 8dde496757
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

@ -77,6 +77,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;