diff --git a/src/shared/util.ts b/src/shared/util.ts index 6eb54fdb4..e6f2af106 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(',') }