diff --git a/src/webpack/api.tsx b/src/webpack/api.tsx index 4855c1f27..437cb346c 100644 --- a/src/webpack/api.tsx +++ b/src/webpack/api.tsx @@ -436,7 +436,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) {