diff --git a/src/webpack/api.tsx b/src/webpack/api.tsx index c01cdc727..a30971541 100644 --- a/src/webpack/api.tsx +++ b/src/webpack/api.tsx @@ -430,7 +430,7 @@ export function findByFactoryCode(...code: string[] | [...string[ * @returns Unmangled exports as specified in mappers */ export function mapMangledModule(code: string | string[], mappers: Record) { - const mapping = {} as Record; + const mapping = {} as Record>; const setters = {} as Record void>; for (const newName in mappers) {