refactor(shared): update genStaticKeys (#13010)

This commit is contained in:
mikoloism 2023-04-27 13:13:19 +03:30 committed by GitHub
parent a9ca2d8519
commit 49b6bd4264
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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<string[]>((keys, m) => keys.concat(m.staticKeys || []), [])
.join(',')
}