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

This commit is contained in:
Nuckyz 2024-06-27 18:47:52 -03:00
commit 0190ada1a1
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -436,7 +436,7 @@ export function findByFactoryCode<T = AnyObject>(...code: string[] | [...string[
* @returns Unmangled exports as specified in mappers
*/
export function mapMangledModule<S extends PropertyKey>(code: string | string[], mappers: Record<S, FilterFn>) {
const mapping = {} as Record<S, ModuleExports>;
const mapping = {} as Record<S, ProxyInner<AnyObject>>;
const setters = {} as Record<S, (innerValue: ModuleExports) => void>;
for (const newName in mappers) {