WebpackPatcher: Use way less closures (#3217)
This commit is contained in:
parent
5d482ff3bf
commit
306890aa13
10 changed files with 236 additions and 244 deletions
|
|
@ -90,7 +90,7 @@ export const filters = {
|
|||
};
|
||||
|
||||
export type CallbackFn = (module: ModuleExports, id: PropertyKey) => void;
|
||||
export type FactoryListernFn = (factory: AnyModuleFactory) => void;
|
||||
export type FactoryListernFn = (factory: AnyModuleFactory, moduleId: PropertyKey) => void;
|
||||
|
||||
export const waitForSubscriptions = new Map<FilterFn, CallbackFn>();
|
||||
export const moduleListeners = new Set<CallbackFn>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue