From 00501b325baeb63b5edce11c0d27c92efe5be956 Mon Sep 17 00:00:00 2001 From: "Popper.Li" <519318459@qq.com> Date: Tue, 5 Sep 2023 14:34:41 +0800 Subject: [PATCH] fix: to record --- packages/preset-umi/src/features/tmpFiles/tmpFiles.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/preset-umi/src/features/tmpFiles/tmpFiles.ts b/packages/preset-umi/src/features/tmpFiles/tmpFiles.ts index cb7304114fbc..b880351e1aa8 100644 --- a/packages/preset-umi/src/features/tmpFiles/tmpFiles.ts +++ b/packages/preset-umi/src/features/tmpFiles/tmpFiles.ts @@ -433,7 +433,7 @@ if (process.env.NODE_ENV === 'development') { function checkDuplicatePluginKeys(arr: string[]) { const duplicates: string[] = []; - arr.reduce<{ [k: string]: boolean }>((prev, curr) => { + arr.reduce>((prev, curr) => { if (prev[curr]) { duplicates.push(curr); } else {