From 49b6bd4264c25ea41408f066a1835f38bf6fe9f1 Mon Sep 17 00:00:00 2001 From: mikoloism Date: Thu, 27 Apr 2023 13:13:19 +0330 Subject: [PATCH] refactor(shared): update `genStaticKeys` (#13010) --- src/shared/util.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/shared/util.ts b/src/shared/util.ts index 6eb54fdb4ef..e6f2af10697 100644 --- a/src/shared/util.ts +++ b/src/shared/util.ts @@ -286,9 +286,7 @@ export function genStaticKeys( modules: Array<{ staticKeys?: string[] } /* ModuleOptions */> ): string { return modules - .reduce((keys, m) => { - return keys.concat(m.staticKeys || []) - }, [] as string[]) + .reduce((keys, m) => keys.concat(m.staticKeys || []), []) .join(',') }