a little more

This commit is contained in:
Nuckyz 2024-06-27 18:47:29 -03:00
parent 858b0e3dd7
commit b5a1b3a124
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

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